Jelajahi Sumber

Fix: Existing Bone node Display Error

Joseph Brandenburg 1 bulan lalu
induk
melakukan
0eca1a6956
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      xForm_nodes.py

+ 2 - 1
xForm_nodes.py

@@ -948,7 +948,8 @@ class xFormGetBone(xFormNode):
     
     
     def bGetParentArmature(self):
     def bGetParentArmature(self):
         from bpy import data
         from bpy import data
-        return data.objects.get(self.evaluate_input("Parent Armature"))
+        # the below function may return None, but data.objects.get expects a string
+        return data.objects.get(self.evaluate_input("Parent Armature") or "")
 
 
     def bGetObject(self, mode = 'POSE'):
     def bGetObject(self, mode = 'POSE'):
         bone = None
         bone = None