Răsfoiți Sursa

Fix `!is_inside_tree` in csg node when reloading a scene

jsjtxietian 1 an în urmă
părinte
comite
a630744b9f
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      modules/csg/csg_shape.cpp

+ 1 - 1
modules/csg/csg_shape.cpp

@@ -1926,7 +1926,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();
 			}