Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9
This commit is contained in:
@ -15,16 +15,18 @@ class RetainValueNode extends LogicNode {
|
||||
override function run(from: Int) {
|
||||
var retainValue = inputs[1].get();
|
||||
|
||||
switch(Type.getClassName(Type.getClass(retainValue))){
|
||||
case "iron.math.Vec4":
|
||||
value = (cast retainValue: Vec4).clone();
|
||||
case "iron.math.Mat4":
|
||||
value = (cast retainValue: Mat4).clone();
|
||||
case "iron.math.Quat":
|
||||
var q: Quat = new Quat();
|
||||
value = q.setFrom((cast retainValue: Quat));
|
||||
default:
|
||||
value = retainValue;
|
||||
if (retainValue != null){
|
||||
switch(Type.getClassName(Type.getClass(retainValue))){
|
||||
case "iron.math.Vec4":
|
||||
value = (cast retainValue: Vec4).clone();
|
||||
case "iron.math.Mat4":
|
||||
value = (cast retainValue: Mat4).clone();
|
||||
case "iron.math.Quat":
|
||||
var q: Quat = new Quat();
|
||||
value = q.setFrom((cast retainValue: Quat));
|
||||
default:
|
||||
value = retainValue;
|
||||
}
|
||||
}
|
||||
|
||||
runOutput(0);
|
||||
|
||||
Reference in New Issue
Block a user