Skip to content

Commit e0fc786

Browse files
committed
新版运动路径插件修复无法ctrl Z bug
1 parent 920bf16 commit e0fc786

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

_BsKeyTools/Scripts/BulletScripts/Quote/DTrajEdit_New.ms

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,10 @@ struct yunTrajEdit_Globals_Struct
390390
------生成轨迹函数 物体 显示 开点 开始色 结束色 开始帧数 结束帧数 点形状 播放是否显示 关键帧开关 是否颜色渐变
391391
fn yunMotionPathCallBackFn obj vis isdot col_Start col_End tStart tEnd dotShape isPlay keyVis isGradual =
392392
(
393+
-- Wrap entire function in undo off to prevent at time evaluations from corrupting undo stack
394+
-- This fixes the bug where Ctrl+Z doesn't work when trajectory plugin is active
395+
undo off
396+
(
393397
-- Save all selected Biped poses before at time access (to restore later and prevent pose reset)
394398
local savedBipeds = #()
395399
local savedBipedPoses = #()
@@ -633,6 +637,7 @@ fn yunMotionPathCallBackFn obj vis isdot col_Start col_End tStart tEnd dotShap
633637
gw.enlargeUpdateRect #whole
634638
gw.updateScreen()
635639
)
640+
) -- end undo off
636641
)
637642
function yunMotionPathCallBackFn_exc =
638643
(

0 commit comments

Comments
 (0)