Skip to content

同id的立绘改变后,setTransform组件的拖拽框没有正确获取当前立绘宽高 #614

Description

@HardyNLee

版本

webgal terre 4.6.0 (实际上应该4.5.19就有)

理想情况

同一个id替换了不同的立绘后,及时前后两张立绘宽高比不同,setTransform组件的拖拽框也应该要获取正确的立绘宽高;

实际情况

若同id的立绘被另一种宽高比的图片顶替,之后的setTransform组件的拖拽框没有正确获取立绘宽高。

Image

测试

changeFigure:stand.webp -id=aaa -transform={"position":{"x":-773,"y":73}}
; 1/open_eyes.png 要比 stand.webp 宽一点
changeFigure:1/open_eyes.png -id=aaa -transform={"position":{"x":500,"y":47}};
setTransform:{"position":{"x":-131,"y":113}}  -target=aaa -duration=500

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions