Fix #119384: Update Sharing Objects When Changing Modes #119759

Closed
Harley Acheson wants to merge 2 commits from Harley/blender:FixSharedDataCrash into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

2 Commits

Author SHA1 Message Date
Harley Acheson d206896524 Call ED_object_editmode_exit_ex and ED_object_editmode_enter_ex for all sharing objects. 2024-03-21 12:57:02 -07:00
Harley Acheson 505438e34f Fix #119384: Update Sharing Objects When Changing Modes
When toggling one object in and out of edit mode, we need to update
the edit mode flag on all objects sharing the same data. Otherwise
some unrelated object might be in OB_MODE_EDIT but suddenly lose their
data->edit_mesh. These being out sync can cause various crashes. This
also corrects the icon shown in Outliner when another object is in edit
mode that shares its data.
2024-03-21 11:48:42 -07:00