ソースを参照

[unity] Fixed Skin created by GetRepackedSkin not copying constraints list. See #1474.

Harald Csaszar 6 年 前
コミット
31f9356af8

+ 2 - 1
spine-unity/Assets/Spine/Runtime/spine-unity/Utility/AtlasUtilities.cs

@@ -325,7 +325,8 @@ namespace Spine.Unity.AttachmentTools {
 			var newSkin = new Skin(newName);
 
 			newSkin.bones.AddRange(o.bones);
-			
+			newSkin.constraints.AddRange(o.constraints);
+
 			// Use these to detect and use shared regions.
 			var existingRegions = new Dictionary<AtlasRegion, int>();
 			var regionIndexes = new List<int>();