armory/blender/arm/logicnode/logic/LN_is_true.py
2020-09-28 15:58:41 +02:00

19 lines
543 B
Python

from arm.logicnode.arm_nodes import *
class IsTrueNode(ArmLogicTreeNode):
"""Passes through its activation only if the plugged in boolean
equals `true`.
@seeNode Is False"""
bl_idname = 'LNIsTrueNode'
bl_label = 'Is True'
arm_version = 1
def init(self, context):
super(IsTrueNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketBool', 'Bool')
self.add_output('ArmNodeSocketAction', 'Out')
add_node(IsTrueNode, category=PKG_AS_CATEGORY)