File tree Expand file tree Collapse file tree
_BsKeyTools/Scripts/BulletScripts/Quote Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -390,6 +390,10 @@ struct yunTrajEdit_Globals_Struct
390390-- ----生成轨迹函数 物体 显示 开点 开始色 结束色 开始帧数 结束帧数 点形状 播放是否显示 关键帧开关 是否颜色渐变
391391fn 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)
637642function yunMotionPathCallBackFn_exc =
638643(
You can’t perform that action at this time.
0 commit comments