Fix CSGShape3D's _mesh_changed thread unsafe call to update_gizmos

This commit is contained in:
jsjtxietian 2023-12-27 12:52:34 +08:00
parent e343dbbcc1
commit 5e4dafb0d9
1 changed files with 2 additions and 1 deletions

View File

@ -934,7 +934,8 @@ CSGBrush *CSGMesh3D::_build_brush() {
void CSGMesh3D::_mesh_changed() { void CSGMesh3D::_mesh_changed() {
_make_dirty(); _make_dirty();
update_gizmos();
callable_mp((Node3D *)this, &Node3D::update_gizmos).call_deferred();
} }
void CSGMesh3D::set_material(const Ref<Material> &p_material) { void CSGMesh3D::set_material(const Ref<Material> &p_material) {