We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b2afc commit 71717efCopy full SHA for 71717ef
plugins/py-liquid_painter_r12/py-liquid_painter_r12.pyp
@@ -132,12 +132,12 @@ class LiquidTool(c4d.plugins.ToolData):
132
if pTag is None:
133
raise MemoryError("Failed to create a Phong Tag.")
134
135
- # Adds an undo step
136
- doc.AddUndo(c4d.UNDO_NEW, metaball)
137
-
138
# Inserts the object in the active document and set it as active one.
139
doc.InsertObject(metaball)
140
doc.SetActiveObject(metaball)
+
+ # Adds an undo step
+ doc.AddUndo(c4d.UNDOTYPE_NEW, metaball)
141
142
# Updates the Viewport (so the metaball is drawn)
143
c4d.DrawViews(c4d.DA_ONLY_ACTIVE_VIEW | c4d.DA_NO_THREAD | c4d.DA_NO_ANIMATION)
0 commit comments