Jelajahi Sumber

fix: Existing Geometry Object reset execution

Joseph Brandenburg 6 bulan lalu
induk
melakukan
5e02451d54
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      misc_nodes.py

+ 5 - 1
misc_nodes.py

@@ -1147,8 +1147,12 @@ class InputExistingGeometryObject(MantisNode):
         self.outputs.init_sockets(outputs)
         self.init_parameters()
         self.node_type = "XFORM"
+    
+    def reset_execution(self):
+        super().reset_execution()
+        self.prepared=False
 
-    def bExecute(self, bContext=None):
+    def bPrepare(self, bContext=None):
         from bpy import data
         ob = None
         if name := self.evaluate_input("Name"):