Merge pull request #86538 from jsjtxietian/fix-shape-thread-error
Fix CSGShape3D's `_mesh_changed` to be thread safe
This commit is contained in:
commit
40f938c44d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue