Skip to content

Commit 33c257c

Browse files
committed
Merge pull request #95414 from jsjtxietian/inside-tree
Fix `!is_inside_tree` in csg node when reloading a scene
2 parents f74b639 + a630744 commit 33c257c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/csg/csg_shape.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2273,7 +2273,7 @@ CSGBrush *CSGPolygon3D::_build_brush() {
22732273
}
22742274

22752275
if (mode == MODE_PATH) {
2276-
if (!path_local) {
2276+
if (!path_local && path->is_inside_tree()) {
22772277
base_xform = path->get_global_transform();
22782278
}
22792279

0 commit comments

Comments
 (0)