File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
addons/KHR_physics_rigid_bodies/blender/exp Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,8 @@ def _buildParentMap(
219
219
node : gltf2_io .Node ,
220
220
):
221
221
nodeToParent [node ] = parent
222
+ if node == None or node .children == None :
223
+ return
222
224
for c in node .children :
223
225
self ._buildParentMap (nodeToParent , node , c )
224
226
@@ -241,7 +243,7 @@ def gather_joint_hook(
241
243
242
244
self .gltfNodeToBlender [gltf2_node ] = blender_bone
243
245
constraint = self ._getBoneChildConstraint (blender_bone )
244
- if constraint != None :
246
+ if constraint != None and constraint . target != None :
245
247
target = constraint .target
246
248
if target .rigid_body or self ._getParentCompoundBody (target ) != None :
247
249
self .blenderBoneToGltfNode [blender_bone ] = gltf2_node
You can’t perform that action at this time.
0 commit comments