Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-06-03 10:31:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-06-03 11:26:02 +0300
commit53cb1a32db5a47957f9670a1382eb98a952d82f0 (patch)
tree84d21858ce33810abc5cc91cb8c4ceeefd5fc9d7
parent3b6e223a0319897b58ac61b8a47b12c40084ca14 (diff)
Cleanup: remove ED_gpencil_setup_modes from object mode set
Grease pencil mode switching functions already call this.
-rw-r--r--source/blender/editors/object/object_edit.c8
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) {