Update EnhancedTransformNode.hx
This commit is contained in:
parent
29ac0667f7
commit
b88b6bb9f2
|
@ -14,10 +14,10 @@ class EnhancedTransformNode extends LogicNode {
|
||||||
override function run() {
|
override function run() {
|
||||||
var object:Object = inputs[1].get();
|
var object:Object = inputs[1].get();
|
||||||
var loc:Vec4 = inputs[2].get();
|
var loc:Vec4 = inputs[2].get();
|
||||||
var rot:Vec4 = inputs[3].get();
|
var rot:Vec4 = inputs[3].get();
|
||||||
var scale:Vec4 = inputs[4].get();
|
var scale:Vec4 = inputs[4].get();
|
||||||
|
|
||||||
if (loc == null || rot == null || scale == null) return;
|
if (loc == null || rot == null || scale == null) return;
|
||||||
|
|
||||||
// Location transform
|
// Location transform
|
||||||
object.transform.loc.x = loc.x;
|
object.transform.loc.x = loc.x;
|
||||||
|
|
Loading…
Reference in New Issue