From 5e2bbbc5ed7da47236de006cc2a1ff990c84f19d Mon Sep 17 00:00:00 2001 From: "Emanuel Acosta Gonzalez (emanvidmaker)" Date: Fri, 26 Dec 2025 14:27:19 -0400 Subject: [PATCH] prevent update_shape from being called twice due to some logic oversight, update_shape gets queued twice to run on the first frame, making scenes csg shapes laggy to open/load in. --- modules/csg/csg_shape.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index 13226a8395e3..49900e604111 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -220,6 +220,7 @@ void CSGShape3D::_make_dirty(bool p_parent_removing) { #ifndef PHYSICS_3D_DISABLED if ((p_parent_removing || is_root_shape()) && !dirty) { callable_mp(this, &CSGShape3D::update_shape).call_deferred(); // Must be deferred; otherwise, is_root_shape() will use the previous parent. + dirty = true; } #endif // PHYSICS_3D_DISABLED