Skip to content

Commit

Permalink
Don't update CSG Shape when not inside tree
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed Sep 14, 2021
1 parent 7cdd862 commit 07042b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/csg/csg_shape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ void CSGShape3D::mikktSetTSpaceDefault(const SMikkTSpaceContext *pContext, const
}

void CSGShape3D::_update_shape() {
if (parent) {
if (parent || !is_inside_tree()) {
return;
}

Expand Down

0 comments on commit 07042b4

Please sign in to comment.