소스 검색

Fixed non-packed sprite attachment issue

Fenrisul 10 년 전
부모
커밋
abdd68ba02
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      spine-unity/Assets/spine-unity/SpriteAttacher.cs

+ 1 - 1
spine-unity/Assets/spine-unity/SpriteAttacher.cs

@@ -54,7 +54,7 @@ public class SpriteAttachmentLoader : AttachmentLoader {
 
 
 	public SpriteAttachmentLoader (Sprite sprite, Shader shader) {
 	public SpriteAttachmentLoader (Sprite sprite, Shader shader) {
 
 
-		if (sprite.packingMode == SpritePackingMode.Tight) {
+		if (sprite.packed && sprite.packingMode == SpritePackingMode.Tight) {
 			Debug.LogError("Tight Packer Policy not supported yet!");
 			Debug.LogError("Tight Packer Policy not supported yet!");
 			return;
 			return;
 		}
 		}