Merge pull request #52647 from timothyqiu/csg-shape-update

Don't update CSG Shape when not inside tree
This commit is contained in:
Rémi Verschelde 2021-09-14 08:56:35 +02:00 committed by GitHub
commit 3d754c7555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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