Get Transform Node Replacement Update

This commit is contained in:
2026-09-07 11:12:57 -07:00
parent bc700a6374
commit 40bca62f96
2 changed files with 8 additions and 3 deletions

View File

@ -10,7 +10,7 @@ class GetTransformNode extends LogicNode {
override function get(from: Int): Dynamic {
var object: Object = inputs[0].get();
var relative: Bool = inputs[1].get();
var relative: Bool = inputs.length > 1 && inputs[1] != null ? inputs[1].get() : false;
if (object == null) return null;

View File

@ -18,4 +18,9 @@ class GetTransformNode(LnxLogicTreeNode):
if self.lnx_version not in (0, 1):
raise LookupError()
return NodeReplacement.Identity(self)
return NodeReplacement(
'LNGetTransformNode', self.lnx_version, 'LNGetTransformNode', 2,
in_socket_mapping={0: 0},
out_socket_mapping={0: 0},
input_defaults={1: False},
)