Don't process CollisionShapes recursively in PropDataCollisionObject, as they only work as a direct child.

This commit is contained in:
Relintai 2023-10-13 19:28:56 +02:00
parent da2daebbb8
commit 73bdeb40c6

View File

@ -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);
}
}
}