mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-15 03:21:35 +08:00
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:
parent
7a2547831a
commit
16b9d63bf7
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user