diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-19 14:33:16 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-19 14:33:16 +0200 |
| commit | 40f938c44df1896ac7509be32a810c796f310c43 (patch) | |
| tree | b1d98074a34caadacdb519848e52453cc94b7fb6 /modules | |
| parent | 7a4a6fbc039fefbccbb23a66285722ad20bf418a (diff) | |
| parent | 5e4dafb0d92a57d6cef3d54a9e0357bc94419c3d (diff) | |
| download | redot-engine-40f938c44df1896ac7509be32a810c796f310c43.tar.gz | |
Merge pull request #86538 from jsjtxietian/fix-shape-thread-error
Fix CSGShape3D's `_mesh_changed` to be thread safe
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/csg/csg_shape.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index 296cda627a..a72627479c 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -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) { |
