diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-06-17 13:14:07 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-06-17 13:14:30 +0300 |
commit | d54eb5ed2093ec4b034c4eb5255c3a8afa645f67 (patch) | |
tree | 2e14fc3235120117b7a4fde4f6b048470ab7504d /source/blender/editors | |
parent | 510f3fe9a977798d44e81add078944745c1585bf (diff) |
Fix crash invoking layer add/remove operators without mask
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mask/mask_ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c index 3c0e7ee399c..f2e9c94c25b 100644 --- a/source/blender/editors/mask/mask_ops.c +++ b/source/blender/editors/mask/mask_ops.c @@ -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; |