Make the mask node a variable node

This commit is contained in:
Moritz Brückner 2020-09-08 22:11:25 +02:00
parent 8e6c8031b0
commit 45ce65513b
2 changed files with 7 additions and 1 deletions

View file

@ -2,6 +2,8 @@ package armory.logicnode;
class MaskNode extends LogicNode {
public var value: Int;
public function new(tree: LogicTree) {
super(tree);
}
@ -14,4 +16,8 @@ class MaskNode extends LogicNode {
}
return ret;
}
override function set(value: Dynamic) {
this.value = value;
}
}

View file

@ -14,6 +14,6 @@ class MaskNode(ArmLogicTreeNode):
label = 'Group {:02d}'.format(i)
self.inputs.new('NodeSocketBool', label)
self.add_output('NodeSocketInt', 'Mask')
self.add_output('NodeSocketInt', 'Mask', is_var=True)
add_node(MaskNode, category=MODULE_AS_CATEGORY)