17 lines
495 B
Python
17 lines
495 B
Python
import bpy
|
|
from bpy.props import *
|
|
from bpy.types import Node, NodeSocket
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
class IsTrueNode(Node, ArmLogicTreeNode):
|
|
'''Is true node'''
|
|
bl_idname = 'LNIsTrueNode'
|
|
bl_label = 'Is True'
|
|
bl_icon = 'NONE'
|
|
|
|
def init(self, context):
|
|
self.inputs.new('ArmNodeSocketAction', 'In')
|
|
self.inputs.new('NodeSocketBool', 'Value')
|
|
self.outputs.new('ArmNodeSocketAction', 'Out')
|
|
|
|
add_node(IsTrueNode, category=MODULE_AS_CATEGORY)
|