From 07042b40440a3af90539ddc5c7a8fcb0a178074e Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 14 Sep 2021 08:38:30 +0800 Subject: [PATCH] Don't update CSG Shape when not inside tree --- modules/csg/csg_shape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index bf11cc7f68a..452fb32d9db 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -280,7 +280,7 @@ void CSGShape3D::mikktSetTSpaceDefault(const SMikkTSpaceContext *pContext, const } void CSGShape3D::_update_shape() { - if (parent) { + if (parent || !is_inside_tree()) { return; }