فهرست منبع

Fix: Existing Bone node Display Error

Joseph Brandenburg 1 ماه پیش
والد
کامیت
0eca1a6956
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      xForm_nodes.py

+ 2 - 1
xForm_nodes.py

@@ -948,7 +948,8 @@ class xFormGetBone(xFormNode):
     
     def bGetParentArmature(self):
         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'):
         bone = None