Cleanup: remove ED_gpencil_setup_modes from object mode set
Grease pencil mode switching functions already call this.
This commit is contained in:
parent
3b6e223a03
commit
53cb1a32db
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue