浏览代码

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