armory/blender/arm/logicnode/logic/LN_is_true.py

16 lines
454 B
Python
Raw Normal View History

2017-04-10 21:17:17 +02:00
from arm.logicnode.arm_nodes import *
class IsTrueNode(ArmLogicTreeNode):
2020-09-08 23:14:51 +02:00
"""Is true node"""
2017-04-10 21:17:17 +02:00
bl_idname = 'LNIsTrueNode'
bl_label = 'Is True'
arm_version = 1
2017-04-10 21:17:17 +02:00
def init(self, context):
super(IsTrueNode, self).init(context)
2020-09-08 21:49:02 +02:00
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketBool', 'Value')
self.add_output('ArmNodeSocketAction', 'Out')
2017-04-10 21:17:17 +02:00
add_node(IsTrueNode, category=PKG_AS_CATEGORY)