Ver código fonte

[phaser] Clean-up rendering code.

Mario Zechner 2 anos atrás
pai
commit
69cec06c23
1 arquivos alterados com 0 adições e 8 exclusões
  1. 0 8
      spine-ts/spine-phaser/src/SpineGameObject.ts

+ 0 - 8
spine-ts/spine-phaser/src/SpineGameObject.ts

@@ -67,15 +67,7 @@ export class SpineGameObject extends ComputedSizeMixin(DepthMixin(FlipMixin(Scro
 
 		camera.addToRenderList(src);
 		let transform = Phaser.GameObjects.GetCalcMatrix(src, camera, parentMatrix).calc;
-		/*let x = transform.tx;
-		let y = transform.ty;
-		let scaleX = transform.scaleX;
-		let scaleY = transform.scaleY;
-		let rotation = transform.rotationNormalized;
-		let cosRotation = Math.cos(rotation);
-		let sinRotation = Math.sin(rotation);*/
 		let a = transform.a, b = transform.b, c = transform.c, d = transform.d, tx = transform.tx, ty = transform.ty;
-
 		sceneRenderer.drawSkeleton(this.skeleton, this.premultipliedAlpha, -1, -1, (vertices, numVertices, stride) => {
 			for (let i = 0; i < numVertices; i += stride) {
 				let vx = vertices[i];