Skip to content

Commit 978f660

Browse files
Reset global clearAll undo-redo properties on new annotation
Signed-off-by: Éloïse Brosseau <eloise.brosseau@autodesk.com>
1 parent 12fcb2a commit 978f660

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/plugins/rv-packages/annotate/annotate_mode.mu

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,19 @@ class: AnnotateMinorMode : MinorMode
554554
setStringProperty(redoName, string[] {}, true);
555555
}
556556

557+
let clearAllUndoProperty = undoClearAllFramesName();
558+
let clearAllRedoProperty = redoClearAllFramesName();
559+
560+
if (propertyExists(clearAllUndoProperty))
561+
{
562+
setStringProperty(clearAllUndoProperty, string[] {}, true);
563+
}
564+
565+
if (propertyExists(clearAllRedoProperty))
566+
{
567+
setStringProperty(clearAllRedoProperty, string[] {}, true);
568+
}
569+
557570
endCompoundStateChange();
558571
return n;
559572
}
@@ -673,6 +686,19 @@ class: AnnotateMinorMode : MinorMode
673686
setStringProperty(redoName, string[] {}, true);
674687
}
675688

689+
let clearAllUndoProperty = undoClearAllFramesName();
690+
let clearAllRedoProperty = redoClearAllFramesName();
691+
692+
if (propertyExists(clearAllUndoProperty))
693+
{
694+
setStringProperty(clearAllUndoProperty, string[] {}, true);
695+
}
696+
697+
if (propertyExists(clearAllRedoProperty))
698+
{
699+
setStringProperty(clearAllRedoProperty, string[] {}, true);
700+
}
701+
676702
endCompoundStateChange();
677703
return n;
678704
}

0 commit comments

Comments
 (0)