Fix T47898: Error adding mask node with "Add Mask Node" operator
This operator is intended to be used by drag-n-drop, no user invocation is expected to happen here. Use Add->Search to quickly add nodes instead.
This commit is contained in:
@@ -439,7 +439,7 @@ void NODE_OT_add_mask(wmOperatorType *ot)
|
|||||||
ot->poll = node_add_mask_poll;
|
ot->poll = node_add_mask_poll;
|
||||||
|
|
||||||
/* flags */
|
/* flags */
|
||||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_INTERNAL;
|
||||||
|
|
||||||
RNA_def_string(ot->srna, "name", "Mask", MAX_ID_NAME - 2, "Name", "Datablock name to assign");
|
RNA_def_string(ot->srna, "name", "Mask", MAX_ID_NAME - 2, "Name", "Datablock name to assign");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user