Browse Source

Fix CSGMesh undo not refreshing gizmo

(cherry picked from commit 4311c2f66e4a1c9b7b77e8d3cdce4be8fa3ec7fa)
Marcel Admiraal 4 năm trước cách đây
mục cha
commit
d8607d8045
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/csg/csg_shape.cpp

+ 1 - 1
modules/csg/csg_shape.cpp

@@ -911,7 +911,7 @@ void CSGMesh::set_mesh(const Ref<Mesh> &p_mesh) {
 		mesh->connect("changed", this, "_mesh_changed");
 	}
 
-	_make_dirty();
+	_mesh_changed();
 }
 
 Ref<Mesh> CSGMesh::get_mesh() {