From acd15e4cd2ef4c7039750455b830d087c6d32733 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 (cherry picked from commit 07042b40440a3af90539ddc5c7a8fcb0a178074e) --- 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 3841a8ebf18..c43bd793286 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -273,7 +273,7 @@ void CSGShape::mikktSetTSpaceDefault(const SMikkTSpaceContext *pContext, const f } void CSGShape::_update_shape() { - if (parent) { + if (parent || !is_inside_tree()) { return; }