Fix BlendActionNode for empty action sockets

This commit is contained in:
Moritz Brückner 2020-10-21 19:30:21 +02:00
parent e2ecf3fea2
commit f9e9dfdd41

View file

@ -14,7 +14,7 @@ class BlendActionNode extends LogicNode {
var action2: String = inputs[3].get();
var blendFactor: Float = inputs[4].get();
if (object == null) return;
if (object == null || action1 == "" || action2 == "") return;
var animation = object.animation;
if (animation == null) animation = object.getParentArmature(object.name);