Эх сурвалжийг харах

Fixed non-packed sprite attachment issue

Fenrisul 10 жил өмнө
parent
commit
abdd68ba02

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

@@ -54,7 +54,7 @@ public class SpriteAttachmentLoader : AttachmentLoader {
 
 	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!");
 			return;
 		}