Skip to content

Commit 66877a9

Browse files
Remove unnecessary undo and redo per user properties in annotation_hook
Signed-off-by: Éloïse Brosseau <[email protected]>
1 parent 18f208e commit 66877a9

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/plugins/rv-packages/otio_reader/annotation_hook.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -138,24 +138,11 @@ def hook_function(in_timeline: otio.schemadef.Annotation.Annotation, argument_ma
138138
},
139139
)
140140

141-
user = "annotation"
142-
process_id = "123456"
143-
144141
if not layer.soft_deleted:
145142
if not commands.propertyExists(f"{frame_component}.order"):
146143
commands.newProperty(f"{frame_component}.order", commands.StringType, 1)
147144

148-
commands.insertStringProperty(f"{frame_component}.order", [f"pen:{stroke_id}:{frame}:{user}"])
149-
150-
if not commands.propertyExists(f"{frame_component}.undo_{user}_{process_id}"):
151-
commands.newProperty(f"{frame_component}.undo_{user}_{process_id}", commands.StringType, 1)
152-
153-
commands.insertStringProperty(
154-
f"{frame_component}.undo_{user}_{process_id}", [f"pen:{stroke_id}:{frame}:{user}", "create"]
155-
)
156-
157-
if commands.propertyExists(f"{frame_component}.redo_{user}_{process_id}"):
158-
commands.setStringProperty(f"{frame_component}.redo_{user}_{process_id}", [])
145+
commands.insertStringProperty(f"{frame_component}.order", [f"pen:{stroke_id}:{frame}:annotation"])
159146

160147
points_property = f"{pen_component}.points"
161148
width_property = f"{pen_component}.width"

0 commit comments

Comments
 (0)