Don't update CSG Shape when not inside tree

(cherry picked from commit 07042b4044)
This commit is contained in:
Haoyu Qiu 2021-09-14 08:38:30 +08:00 committed by Rémi Verschelde
parent d6f131904b
commit acd15e4cd2
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

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