Pixi update.

This commit is contained in:
photonstorm 2014-12-03 09:18:43 +00:00
parent 75238c2cce
commit eb6a09ca0a

View file

@ -59,7 +59,7 @@ PIXI.SpriteBatch.prototype.initWebGL = function(gl)
PIXI.SpriteBatch.prototype.updateTransform = function()
{
// TODO don't need to!
PIXI.DisplayObject.prototype.updateTransform.call( this );
this.displayObjectUpdateTransform();
// PIXI.DisplayObjectContainer.prototype.updateTransform.call( this );
};
@ -101,7 +101,7 @@ PIXI.SpriteBatch.prototype._renderCanvas = function(renderSession)
var context = renderSession.context;
context.globalAlpha = this.worldAlpha;
PIXI.DisplayObject.prototype.updateTransform.call(this);
this.displayObjectUpdateTransform();
var transform = this.worldTransform;
// alow for trimming
@ -142,7 +142,7 @@ PIXI.SpriteBatch.prototype._renderCanvas = function(renderSession)
{
if(!isRotated)isRotated = true;
PIXI.DisplayObject.prototype.updateTransform.call(child);
child.displayObjectUpdateTransform();
var childTransform = child.worldTransform;