Explorar o código

Fix: auto-socket-update fails for xForm objects

really this commit doesn't do anything until the next thing i'm gonna commit
Joseph Brandenburg hai 5 meses
pai
achega
c24fccc895
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      base_definitions.py

+ 4 - 1
base_definitions.py

@@ -761,7 +761,10 @@ class MantisNode:
                             "Updating tree instead.")
         else:
             try:
-                setattr(self.bObject, blender_property, value)
+                b_ob = self.bObject
+                if self.node_type == 'XFORM': # HACK
+                    b_ob = self.bGetObject()
+                setattr(b_ob, blender_property, value)
                 change_handled=True
             except Exception as e:
                 print("Failed to update mantis socket because of %s" % e,