diff --git a/release/scripts/startup/bl_operators/node.py b/release/scripts/startup/bl_operators/node.py index 9b629c3f976..77978c71ed9 100644 --- a/release/scripts/startup/bl_operators/node.py +++ b/release/scripts/startup/bl_operators/node.py @@ -113,8 +113,11 @@ class NodeAddOperator(): # Default execute simply adds a node def execute(self, context): - self.create_node(context) - return {'FINISHED'} + if self.properties.is_property_set("type"): + self.create_node(context) + return {'FINISHED'} + else: + return {'CANCELLED'} # Default invoke stores the mouse position to place the node correctly # and optionally invokes the transform operator