Make the mask node a variable node
This commit is contained in:
parent
8e6c8031b0
commit
45ce65513b
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue