Fix T69834 Edit Mesh: Multi-object edit crash when an instance is hidden
authorClément Foucault <foucault.clem@gmail.com>
Wed, 5 Feb 2020 16:22:36 +0000 (17:22 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 5 Feb 2020 16:22:36 +0000 (17:22 +0100)
This was caused by a missing tag of the mesh datablock.

source/blender/editors/object/object_edit.c

index 8012565ba2e3b38a551aee407d5b76404947fdce..098a4c65ae0fbd5c70701c8e49ec81a6bf310159 100644 (file)
@@ -544,6 +544,8 @@ bool ED_object_editmode_exit_ex(Main *bmain, Scene *scene, Object *obedit, int f
     if (UNLIKELY(obedit && obedit->mode & OB_MODE_EDIT)) {
       obedit->mode &= ~OB_MODE_EDIT;
     }
+    /* Also happens when mesh is shared across multiple objects. [#T69834] */
+    DEG_id_tag_update(&obedit->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY);
     return true;
   }