summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMinusKube <minuskube@gmail.com>2023-01-31 01:54:59 +0100
committerMinusKube <minuskube@gmail.com>2023-01-31 02:04:57 +0100
commit541b725190aead00f05211e873e0220310fe26d5 (patch)
tree661c988bc06ccf3b19a076d6a69cd91137f4d5f1 /modules
parenta43db5afa4bbec4772be2f296931a6d44bb4cbb3 (diff)
Don't generate CSGPolygon3D shape before the assigned path is inside tree
Diffstat (limited to 'modules')
-rw-r--r--modules/csg/csg_shape.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp
index 9cc3d0413d..13c7a8202c 100644
--- a/modules/csg/csg_shape.cpp
+++ b/modules/csg/csg_shape.cpp
@@ -558,7 +558,7 @@ void CSGShape3D::_notification(int p_what) {
set_collision_layer(collision_layer);
set_collision_mask(collision_mask);
set_collision_priority(collision_priority);
- _update_collision_faces();
+ _make_dirty();
}
} break;
@@ -1763,7 +1763,7 @@ CSGBrush *CSGPolygon3D::_build_brush() {
}
}
- if (!path) {
+ if (!path || !path->is_inside_tree()) {
return new_brush;
}