Bug: animation totally disappears if has alpha < 1 (#833)

This problem was probably introduced while moving to new starling version where premultiplied alpha is no longer passed as an argument to `render()`. 

BTW if I get it right then there's no need to manually restore `blendMode` because `DisplayObjectContainer` wraps child's `render()` with `painter.pushState()`/`painter.popState()`.
This commit is contained in:
id-ilych 2017-02-23 12:22:48 +02:00 committed by Mario Zechner
parent 7a2547831a
commit 16b9d63bf7

View File

@ -69,7 +69,7 @@ public class SkeletonSprite extends DisplayObject {
}
override public function render (painter:Painter) : void {
alpha *= this.alpha * skeleton.a;
painter.state.alpha *= skeleton.a;
var originalBlendMode:String = painter.state.blendMode;
var r:Number = skeleton.r * 255;
var g:Number = skeleton.g * 255;