Просмотр исходного кода

ensure xForm is always reset completely

when resetting execution, reset xForm node completely because bObject is
set during bPrepare for some of them
this isn't strictly necessary for bone/armature. whatever. no biggie
Joseph Brandenburg 9 месяцев назад
Родитель
Сommit
e6fa9f5b62
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      xForm_containers.py

+ 5 - 0
xForm_containers.py

@@ -77,6 +77,11 @@ class xFormNode(MantisNode):
         self.node_type = 'XFORM'
         self.node_type = 'XFORM'
         self.bObject=None
         self.bObject=None
 
 
+    # because new objects are created during prep phase
+    def reset_execution(self): 
+        super().reset_execution()
+        self.prepared=False
+
 class xFormArmature(xFormNode):
 class xFormArmature(xFormNode):
     '''A node representing an armature object'''
     '''A node representing an armature object'''