Commit: 8a9dd6f6fb35c51d38ad0a0e0c11611704262cc6
Author: Sergey Sharybin
Date:   Mon Mar 28 10:07:06 2016 +0200
Branches: master
https://developer.blender.org/rB8a9dd6f6fb35c51d38ad0a0e0c11611704262cc6

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.

===================================================================

M       source/blender/editors/space_node/node_add.c

===================================================================

diff --git a/source/blender/editors/space_node/node_add.c 
b/source/blender/editors/space_node/node_add.c
index 08dbb21..b50df02 100644
--- a/source/blender/editors/space_node/node_add.c
+++ b/source/blender/editors/space_node/node_add.c
@@ -439,7 +439,7 @@ void NODE_OT_add_mask(wmOperatorType *ot)
        ot->poll = node_add_mask_poll;
 
        /* 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");
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to