Skip to content

Commit b0c2e25

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

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
@@ -553,6 +553,19 @@ class: AnnotateMinorMode : MinorMode
553553
setStringProperty(redoName, string[] {}, true);
554554
}
555555

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

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

0 commit comments

Comments
 (0)