Skip to content

Commit

Permalink
Fix CSGShape3D's _mesh_changed thread unsafe call to update_gizmos
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjtxietian committed Jul 30, 2024
1 parent e343dbb commit 5e4dafb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/csg/csg_shape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,8 @@ CSGBrush *CSGMesh3D::_build_brush() {

void CSGMesh3D::_mesh_changed() {
_make_dirty();
update_gizmos();

callable_mp((Node3D *)this, &Node3D::update_gizmos).call_deferred();
}

void CSGMesh3D::set_material(const Ref<Material> &p_material) {
Expand Down

0 comments on commit 5e4dafb

Please sign in to comment.