WorkSpace: use existing mode data w/ scene-switch
authorCampbell Barton <ideasman42@gmail.com>
Sat, 3 Mar 2018 05:39:57 +0000 (16:39 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 3 Mar 2018 05:39:57 +0000 (16:39 +1100)
commit8d575899a17f12681beb9bdb3f7d3005d6d12103
treecfe94562589ae081d939623196373e296a270199
parentb8f7538348e6ff37d960cd933562d1f5ff15241c
WorkSpace: use existing mode data w/ scene-switch

Check if mode data exists before attempting to change the modes.
source/blender/editors/include/ED_object.h
source/blender/editors/object/object_modes.c
source/blender/editors/scene/scene_edit.c
source/blender/editors/screen/workspace_edit.c