mirror of
https://github.com/godotengine/godot
synced 2024-09-04 21:18:26 +00:00
Fix exporting trigger shapes in GLTF
This commit is contained in:
parent
4e990cd7e5
commit
f18c46d687
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue