Browse Source

Don't update CSG Shape when not inside tree

(cherry picked from commit 07042b40440a3af90539ddc5c7a8fcb0a178074e)
Haoyu Qiu 4 năm trước cách đây
mục cha
commit
acd15e4cd2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/csg/csg_shape.cpp

+ 1 - 1
modules/csg/csg_shape.cpp

@@ -273,7 +273,7 @@ void CSGShape::mikktSetTSpaceDefault(const SMikkTSpaceContext *pContext, const f
 }
 
 void CSGShape::_update_shape() {
-	if (parent) {
+	if (parent || !is_inside_tree()) {
 		return;
 	}