summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-09-14 08:56:35 +0200
committerGitHub <noreply@github.com>2021-09-14 08:56:35 +0200
commit3d754c7555d7b319bb6bc0a1e53c01fe2e62dbd6 (patch)
tree2447566ecfea28c5131faa3b9223a0b1cd2b1871
parent60e0f8b6265d09552825515966835bfa9aeaf663 (diff)
parent07042b40440a3af90539ddc5c7a8fcb0a178074e (diff)
Merge pull request #52647 from timothyqiu/csg-shape-update
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;
}