Update AnimationStateNode.hx

This commit is contained in:
knowledgenude 2020-10-14 10:05:31 -03:00 committed by GitHub
parent be137c3805
commit 56f101e403
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,10 +18,10 @@ class AnimationStateNode extends LogicNode {
if (animation == null) animation = object.getParentArmature(object.name);
return switch (from) {
case 0: animation.action;
case 1: animation.currentFrame();
case 2: animation.paused;
default: null;
case 0: animation.action;
case 1: animation.currentFrame();
case 2: animation.paused;
default: null;
}
}
}