diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-06-03 10:31:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-06-03 11:26:02 +0300 |
commit | 53cb1a32db5a47957f9670a1382eb98a952d82f0 (patch) | |
tree | 84d21858ce33810abc5cc91cb8c4ceeefd5fc9d7 /source/blender | |
parent | 3b6e223a0319897b58ac61b8a47b12c40084ca14 (diff) |
Cleanup: remove ED_gpencil_setup_modes from object mode set
Grease pencil mode switching functions already call this.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 62389be9f56..8fce6dce26a 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -1565,14 +1565,6 @@ static int object_mode_set_exec(bContext *C, wmOperator *op) } } - /* if type is OB_GPENCIL, set cursor mode */ - if (ob->type == OB_GPENCIL) { - if (ob->data) { - bGPdata *gpd = (bGPdata *)ob->data; - ED_gpencil_setup_modes(C, gpd, ob->mode); - } - } - if (use_submode) { if (ob->type == OB_MESH) { if (ob->mode & OB_MODE_EDIT) { |