armory/blender/arm/logicnode/variable/LN_boolean.py
knowledgenude 46492cc425 fixes
2020-11-17 17:35:22 -03:00

15 lines
461 B
Python

from arm.logicnode.arm_nodes import *
class BooleanNode(ArmLogicTreeNode):
"""Stores the given boolean as a variable. A boolean value has just two
states: `true` and `false`."""
bl_idname = 'LNBooleanNode'
bl_label = 'Boolean'
arm_version = 1
def init(self, context):
super(BooleanNode, self).init(context)
self.add_input('NodeSocketBool', 'Bool In')
self.add_output('NodeSocketBool', 'Bool Out', is_var=True)