Sfoglia il codice sorgente

Fixed TransformMode.noRotationOrReflection applying skeleton scale twice.

This transform mode inherits scale from the parent, which will have skeleton scale, so should not have it applied again.

closes #1668
Nathan Sweet 5 anni fa
parent
commit
de203d5715

+ 1 - 1
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Bone.java

@@ -169,7 +169,7 @@ public class Bone implements Updatable {
 			b = pa * lb - pb * ld;
 			c = pc * la + pd * lc;
 			d = pc * lb + pd * ld;
-			break;
+			return;
 		}
 		case noScale:
 		case noScaleOrReflection: {