Skip to content

Commit

Permalink
Merge pull request #88201 from aaronfranke/gltf-fix-trigger-export
Browse files Browse the repository at this point in the history
Fix exporting trigger shapes in GLTF
  • Loading branch information
akien-mga committed Feb 12, 2024
2 parents 75a8c8a + f18c46d commit 80503c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ void GLTFDocumentExtensionPhysics::convert_scene_node(Ref<GLTFState> p_state, Re
gltf_shape->set_mesh_index(_get_or_insert_mesh_in_state(p_state, importer_mesh));
}
}
if (cast_to<Area3D>(_get_ancestor_collision_object(p_scene_node))) {
if (cast_to<Area3D>(_get_ancestor_collision_object(p_scene_node->get_parent()))) {
p_gltf_node->set_additional_data(StringName("GLTFPhysicsTriggerShape"), gltf_shape);
} else {
p_gltf_node->set_additional_data(StringName("GLTFPhysicsColliderShape"), gltf_shape);
Expand Down

0 comments on commit 80503c7

Please sign in to comment.