feat(editor): author montage layer bone masks

This commit is contained in:
西风逍遥游 committed 2026-09-13 14:48:16 +08:00
1 parent 76c7b07f4e
commit 45e4aedabb
5 files changed
+68 -1

No files matched your search

+7
View File
@@ -41,6 +41,11 @@ TEST_CASE("editor.actionTimeline.scriptUsesCanonicalTransactionsAndWorkspace") {
sectionProgressBeforeStart <- actionEditor.evaluateRuntimeSectionProgress(0, 0.5);
sectionSyncJumpBeforeStart <- actionEditor.syncRuntimeSectionAndJump(0, 0.25);
clearSectionSyncBeforeStart <- actionEditor.clearRuntimeSectionSync(0);
testAnimation <- eve.Animation();
testSkeleton <- testAnimation.newSkeleton();
testBoneMask <- testAnimation.newBoneMask(testSkeleton);
setBoneMaskBeforeStart <- actionEditor.setRuntimeBoneMask(testBoneMask);
clearBoneMaskBeforeStart <- actionEditor.clearRuntimeBoneMask();
configured <- actionEditor.configureWorkspace(workspace);
workspacePanelCount <- workspace.getPanelCount();
viewport <- actionEditor.setViewport(800.0, 36.0, 120.0);
@@ -210,6 +215,8 @@ TEST_CASE("editor.actionTimeline.scriptUsesCanonicalTransactionsAndWorkspace") {
CHECK(!vm.find("sectionProgressBeforeStart").toTable().get<bool>("ok"));
CHECK(!vm.find("sectionSyncJumpBeforeStart").toTable().get<bool>("ok"));
CHECK(!vm.find("clearSectionSyncBeforeStart").toTable().get<bool>("ok"));
CHECK(!vm.find("setBoneMaskBeforeStart").toTable().get<bool>("ok"));
CHECK(!vm.find("clearBoneMaskBeforeStart").toTable().get<bool>("ok"));
CHECK(vm.find("configured").toTable().get<bool>("ok"));
CHECK_EQ(vm.find("workspacePanelCount").toInt(), 4);
CHECK(vm.find("viewport").toTable().get<bool>("ok"));