From 5e4dafb0d92a57d6cef3d54a9e0357bc94419c3d Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Wed, 27 Dec 2023 12:52:34 +0800 Subject: [PATCH] Fix CSGShape3D's _mesh_changed thread unsafe call to update_gizmos --- modules/csg/csg_shape.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index 296cda627aa..a72627479cf 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 &p_material) {