소스 검색

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 년 전
부모
커밋
de203d5715
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Bone.java

+ 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: {