Don't update CSG Shape when not inside tree

This commit is contained in:
Haoyu Qiu 2021-09-14 08:38:30 +08:00
parent 7cdd8629ad
commit 07042b4044

View file

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