Merge pull request #86538 from jsjtxietian/fix-shape-thread-error

Fix CSGShape3D's `_mesh_changed` to be thread safe
This commit is contained in:
Rémi Verschelde 2024-08-19 14:33:16 +02:00
commit 40f938c44d
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 1 deletions

View File

@ -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) {