Skip to content

feat(webgal): 动画预览响应返回生效变换与基准状态 - #1069

Merged
MakinoharaShoko merged 1 commit into
OpenWebGAL:devfrom
A-kirami:feat/seek-animation-response
Nov 9, 2026
Merged

MakinoharaShoko merged 1 commit into
OpenWebGAL:devfrom
A-kirami:feat/seek-animation-response

Conversation

@A-kirami

@A-kirami A-kirami commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

改动

preview.command.seek-animation 响应新增 transform 和 baseTransform,分别返回指定时刻实际应用到目标的变换,以及本次采样使用的基准状态。

编辑器可据此绘制预览选框、反算关键帧,无需重复实现引擎对 relative、inherit 和 relativeCalc 的合成逻辑。

兼容性

请求字段和响应信封结构不变,仅扩展响应 payload;忽略未知字段的旧客户端可继续使用。

验证

已检查命令响应链路和类型映射;未运行类型检查、自动化测试或编辑器联调。

v2 动画的预览拖拽需要引擎在时刻 T 实际应用的 target 变换与本次使用的
基准状态:编辑器不能自行复刻 relative / inherit / relativeCalc 的合成。
seekAnimationPreview 已经算出这两份值,直接随命令响应返回。

响应仍是 preview.command.seek-animation 的 envelope,payload 增加
transform / baseTransform;旧客户端忽略未知字段,请求字段不变。
@MakinoharaShoko
MakinoharaShoko merged commit 75e3a12 into OpenWebGAL:dev Nov 9, 2026
1 check passed
@A-kirami
A-kirami deleted the feat/seek-animation-response branch November 9, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants