diff options
author | Julian Eisel <julian@blender.org> | 2020-09-03 22:00:00 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-09-03 22:04:17 +0300 |
commit | 88b6dd1392dfa5f2fc3047bc0ec597b2478f6174 (patch) | |
tree | 8e77e75b403b2818f2bdf97d054f382a62c52f15 /source/blender/editors/space_view3d/view3d_select.c | |
parent | c7b00ef625f174199c2e173026a4ec5d7e57c2ec (diff) |
Fix missing cursor changes with "Lock Object Modes" disabled
Changing the active object would change the mode, but the necessary
toolsystem update to change the cursor was not run.
Steps to recreate were:
* Duplicate default cube
* Enter sculpt mode with one of the cubes
* Disable Edit > Lock Object Modes
* Select back-and-forth between the objects
Same would happen with other modes.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_select.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_select.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c index 03c1ecae317..7562bf6f75c 100644 --- a/source/blender/editors/space_view3d/view3d_select.c +++ b/source/blender/editors/space_view3d/view3d_select.c @@ -76,6 +76,7 @@ #include "DEG_depsgraph.h" #include "WM_api.h" +#include "WM_toolsystem.h" #include "WM_types.h" #include "RNA_access.h" @@ -2293,6 +2294,9 @@ static bool ed_object_select_pick(bContext *C, if ((oldbasact != basact) && (is_obedit == false)) { ED_object_base_activate(C, basact); /* adds notifier */ + if ((scene->toolsettings->object_flag & SCE_OBJECT_MODE_LOCK) == 0) { + WM_toolsystem_update_from_context_view3d(C); + } } /* Set special modes for grease pencil |