2017-04-08 20:05:35 +02:00
|
|
|
import bpy
|
|
|
|
from bpy.props import *
|
|
|
|
from bpy.types import Node, NodeSocket
|
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
class IsNotNoneNode(ArmLogicTreeNode):
|
2017-04-08 20:05:35 +02:00
|
|
|
'''Is not none node'''
|
|
|
|
bl_idname = 'LNIsNotNoneNode'
|
|
|
|
bl_label = 'Is Not None'
|
2020-08-07 19:03:29 +02:00
|
|
|
bl_icon = 'NONE'
|
2020-09-08 17:03:24 +02:00
|
|
|
|
2017-04-08 20:05:35 +02:00
|
|
|
def init(self, context):
|
|
|
|
self.inputs.new('ArmNodeSocketAction', 'In')
|
|
|
|
self.inputs.new('NodeSocketShader', 'Value')
|
|
|
|
self.outputs.new('ArmNodeSocketAction', 'Out')
|
|
|
|
|
2020-09-08 17:03:24 +02:00
|
|
|
add_node(IsNotNoneNode, category=MODULE_AS_CATEGORY)
|