Cleanup: remove ED_gpencil_setup_modes from object mode set

Grease pencil mode switching functions already call this.
This commit is contained in:
Campbell Barton 2020-06-03 17:31:55 +10:00
parent 3b6e223a03
commit 53cb1a32db
1 changed files with 0 additions and 8 deletions

View File

@ -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) {