mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-05 04:22:10 +00:00
Merge pull request #72427 from MinusKube/csg-polygon-path-bug
Don't generate CSGPolygon3D shape before the assigned path is inside tree
This commit is contained in:
@@ -558,7 +558,7 @@ void CSGShape3D::_notification(int p_what) {
|
|||||||
set_collision_layer(collision_layer);
|
set_collision_layer(collision_layer);
|
||||||
set_collision_mask(collision_mask);
|
set_collision_mask(collision_mask);
|
||||||
set_collision_priority(collision_priority);
|
set_collision_priority(collision_priority);
|
||||||
_update_collision_faces();
|
_make_dirty();
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
@@ -1763,7 +1763,7 @@ CSGBrush *CSGPolygon3D::_build_brush() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!path) {
|
if (!path || !path->is_inside_tree()) {
|
||||||
return new_brush;
|
return new_brush;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user