forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
16
leenkx/blender/lnx/logicnode/logic/LN_branch.py
Normal file
16
leenkx/blender/lnx/logicnode/logic/LN_branch.py
Normal file
@ -0,0 +1,16 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class BranchNode(LnxLogicTreeNode):
|
||||
"""Activates its `true` or `false` output, according
|
||||
to the state of the plugged-in boolean."""
|
||||
bl_idname = 'LNBranchNode'
|
||||
bl_label = 'Branch'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxBoolSocket', 'Bool')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'True')
|
||||
self.add_output('LnxNodeSocketAction', 'False')
|
Reference in New Issue
Block a user