Repository navigation
feat(webgal): 动画预览响应返回生效变换与基准状态 - #1069
Merged
MakinoharaShoko merged 1 commit intoNov 9, 2026
Merged
Conversation
v2 动画的预览拖拽需要引擎在时刻 T 实际应用的 target 变换与本次使用的 基准状态:编辑器不能自行复刻 relative / inherit / relativeCalc 的合成。 seekAnimationPreview 已经算出这两份值,直接随命令响应返回。 响应仍是 preview.command.seek-animation 的 envelope,payload 增加 transform / baseTransform;旧客户端忽略未知字段,请求字段不变。
MakinoharaShoko
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
preview.command.seek-animation响应新增transform和baseTransform,分别返回指定时刻实际应用到目标的变换,以及本次采样使用的基准状态。编辑器可据此绘制预览选框、反算关键帧,无需重复实现引擎对
relative、inherit和relativeCalc的合成逻辑。兼容性
请求字段和响应信封结构不变,仅扩展响应 payload;忽略未知字段的旧客户端可继续使用。
验证
已检查命令响应链路和类型映射;未运行类型检查、自动化测试或编辑器联调。