forked from LeenkxTeam/LNXSDK
Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9
This commit is contained in:
@ -4,8 +4,17 @@ class TimeNode(LnxLogicTreeNode):
|
||||
"""Returns the application execution time and the delta time."""
|
||||
bl_idname = 'LNTimeNode'
|
||||
bl_label = 'Get Application Time'
|
||||
lnx_version = 1
|
||||
lnx_section = 'time'
|
||||
lnx_version = 2
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_output('LnxFloatSocket', 'Time')
|
||||
self.add_output('LnxFloatSocket', 'Delta')
|
||||
self.add_output('LnxFloatSocket', 'RealTime')
|
||||
|
||||
|
||||
def get_replacement_node(self, node_tree: bpy.types.NodeTree):
|
||||
if self.lnx_version not in (0, 1):
|
||||
raise LookupError()
|
||||
|
||||
return NodeReplacement.Identity(self)
|
||||
|
||||
Reference in New Issue
Block a user