Fix SetRotation Node when vector input is null

master
Moritz Brückner 2020-04-19 17:25:08 +02:00
parent dadbace806
commit 9ebf4577ca
1 changed files with 3 additions and 3 deletions

View File

@ -15,11 +15,11 @@ class SetRotationNode extends LogicNode {
override function run(from: Int) {
var object: Object = inputs[1].get();
if (object == null) {
return;
}
if (object == null) return;
var vec: Vec4 = inputs[2].get();
if (vec == null) return;
var w: Float = inputs[3].get();
switch (property0) {
case "Euler Angles":
object.transform.rot.fromEuler(vec.x, vec.y, vec.z);