diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-02-05 19:22:36 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-02-05 19:22:36 +0300 |
commit | 0a95a0852eb190613f93639a503416158c8cfc4a (patch) | |
tree | f46546e115f28e64935bb2fed4332c58ea4e3cbe /source | |
parent | 994e9f702fb55c309fc84a1bb89fbf3f9c4a1fea (diff) |
Fix T69834 Edit Mesh: Multi-object edit crash when an instance is hidden
This was caused by a missing tag of the mesh datablock.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 8012565ba2e..098a4c65ae0 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -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; } |