Fix crash invoking layer add/remove operators without mask

This commit is contained in:
Sergey Sharybin 2022-06-17 12:14:07 +02:00
parent 510f3fe9a9
commit d54eb5ed20
1 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ void MASK_OT_layer_new(wmOperatorType *ot)
/* api callbacks */
ot->exec = mask_layer_new_exec;
ot->poll = ED_maskedit_poll;
ot->poll = ED_maskedit_mask_poll;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
@ -181,7 +181,7 @@ void MASK_OT_layer_remove(wmOperatorType *ot)
/* api callbacks */
ot->exec = mask_layer_remove_exec;
ot->poll = ED_maskedit_poll;
ot->poll = ED_maskedit_mask_poll;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;