Merge pull request #1946 from MoritzBrueckner/fix-blend-action-node

Fix BlendActionNode for empty action sockets
This commit is contained in:
Lubos Lenco 2020-10-22 09:58:30 +02:00 committed by GitHub
commit bf2252d09a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);