Don't update CSG Shape when not inside tree
(cherry picked from commit 07042b4044
)
This commit is contained in:
parent
20b481f3f8
commit
bdbd34b388
|
@ -269,9 +269,9 @@ void CSGShape::mikktSetTSpaceDefault(const SMikkTSpaceContext *pContext, const f
|
|||
}
|
||||
|
||||
void CSGShape::_update_shape() {
|
||||
|
||||
if (parent)
|
||||
if (parent || !is_inside_tree()) {
|
||||
return;
|
||||
}
|
||||
|
||||
set_base(RID());
|
||||
root_mesh.unref(); //byebye root mesh
|
||||
|
|
Loading…
Reference in New Issue