فهرست منبع

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 10 ماه پیش
والد
کامیت
c24fccc895
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  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,