瀏覽代碼

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