2
0
Эх сурвалжийг харах

Merge pull request #95414 from jsjtxietian/inside-tree

Fix `!is_inside_tree` in csg node when reloading a scene
Thaddeus Crews 1 сар өмнө
parent
commit
33c257c081

+ 1 - 1
modules/csg/csg_shape.cpp

@@ -2273,7 +2273,7 @@ CSGBrush *CSGPolygon3D::_build_brush() {
 		}
 
 		if (mode == MODE_PATH) {
-			if (!path_local) {
+			if (!path_local && path->is_inside_tree()) {
 				base_xform = path->get_global_transform();
 			}