Skip to content

Commit

Permalink
Make ACTIVE/PASSIVE settings match blender behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
eoineoineoin committed Mar 25, 2024
1 parent 044ba08 commit 7274bfd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,10 @@ def gather_node_hook2(self, gltf2_object, blender_object, export_settings):
# specified by being a child of a body whose collider type is "Compound Parent"
if (
blender_object.rigid_body
and blender_object.rigid_body.enabled
and self._getParentCompoundBody(blender_object) == None
and blender_object.rigid_body.enabled
# Not PASSIVE, which seems to imply static:
and blender_object.rigid_body.type == "ACTIVE"
):
rb = blender_object.rigid_body
extraProps = blender_object.khr_physics_extra_props
Expand Down

0 comments on commit 7274bfd

Please sign in to comment.