From a630744b9f72d633e47cb1b0c8ed1502f4d661d2 Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Mon, 12 Aug 2024 12:58:06 +0800 Subject: [PATCH] Fix `!is_inside_tree` in csg node when reloading a scene --- modules/csg/csg_shape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index 296cda627aa..4aea75be917 100644 --- a/modules/csg/csg_shape.cpp +++ b/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(); }