From 73bdeb40c6472a8890291ac3a1964b54aa30cf15 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 13 Oct 2023 19:28:56 +0200 Subject: [PATCH] Don't process CollisionShapes recursively in PropDataCollisionObject, as they only work as a direct child. --- modules/props/props/prop_data_collision_object.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/props/props/prop_data_collision_object.cpp b/modules/props/props/prop_data_collision_object.cpp index b9b202574..08d913c0a 100644 --- a/modules/props/props/prop_data_collision_object.cpp +++ b/modules/props/props/prop_data_collision_object.cpp @@ -108,10 +108,6 @@ void PropDataCollisionObject::processor_process_collision_objects(Node *node, co if (shape.is_valid()) { add_collision_shape(current_transform, shape); } - - if (c->get_child_count() > 0) { - processor_process_collision_objects(c, current_transform); - } } }