SelfNode -> SelfObjectNode

This commit is contained in:
Moritz Brückner 2020-09-08 23:30:37 +02:00
parent 8559505d2f
commit ce3a4dd1a0
2 changed files with 12 additions and 12 deletions

View file

@ -1,12 +0,0 @@
from arm.logicnode.arm_nodes import *
class SelfNode(ArmLogicTreeNode):
"""Self node"""
bl_idname = 'LNSelfNode'
bl_label = 'Self'
bl_icon = 'NONE'
def init(self, context):
self.add_output('ArmNodeSocketObject', 'Object')
add_node(SelfNode, category=MODULE_AS_CATEGORY)

View file

@ -0,0 +1,12 @@
from arm.logicnode.arm_nodes import *
class SelfObjectNode(ArmLogicTreeNode):
"""Returns the object that owns the current trait."""
bl_idname = 'LNSelfNode'
bl_label = 'Self Object'
bl_icon = 'NONE'
def init(self, context):
self.add_output('ArmNodeSocketObject', 'Object')
add_node(SelfObjectNode, category=MODULE_AS_CATEGORY)