summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2021-09-14 08:38:30 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2021-09-14 08:38:30 +0800
commit07042b40440a3af90539ddc5c7a8fcb0a178074e (patch)
tree5db6f1564965ef39b4038b2641c9e55198dbf974
parent7cdd8629ad4c2994c7882fe2c1dccd29ce5dec2c (diff)
Don't update CSG Shape when not inside tree
-rw-r--r--modules/csg/csg_shape.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp
index bf11cc7f68..452fb32d9d 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;
}