Repe [T3DU] and Moises Jpelaez updates
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class SetTilesheetFlipNode(LnxLogicTreeNode):
|
||||
"""Set the flip state of the tilesheet for UV-based sprite flipping.
|
||||
This is useful for billboarded sprites where mesh scaling cannot be used.
|
||||
|
||||
@input Flip X: Flip the sprite horizontally.
|
||||
@input Flip Y: Flip the sprite vertically.
|
||||
"""
|
||||
bl_idname = 'LNSetTilesheetFlipNode'
|
||||
bl_label = 'Set Tilesheet Flip'
|
||||
lnx_version = 1
|
||||
lnx_section = 'tilesheet'
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxNodeSocketObject', 'Object')
|
||||
self.add_input('LnxBoolSocket', 'Flip X')
|
||||
self.add_input('LnxBoolSocket', 'Flip Y')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
Reference in New Issue
Block a user