Ver código fonte

Merge branch '3.7-beta' of https://github.com/esotericsoftware/spine-runtimes into 3.7-beta

badlogic 7 anos atrás
pai
commit
38f66b8720

+ 3 - 3
spine-unity/Assets/Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs

@@ -1363,9 +1363,9 @@ namespace Spine.Unity.Editor {
 
 
 			bool pmaVertexColors = false;
 			bool pmaVertexColors = false;
 			bool tintBlack = false;
 			bool tintBlack = false;
-			foreach (SpineAtlasAsset atlasAsset in skeletonDataAsset.atlasAssets) {
+			foreach (var atlasAsset in skeletonDataAsset.atlasAssets) {
 				if (!pmaVertexColors) {
 				if (!pmaVertexColors) {
-					foreach (Material m in atlasAsset.materials) {
+					foreach (Material m in atlasAsset.Materials) {
 						if (m.shader.name.Contains(PMAShaderQuery)) {
 						if (m.shader.name.Contains(PMAShaderQuery)) {
 							pmaVertexColors = true;
 							pmaVertexColors = true;
 							break;
 							break;
@@ -1374,7 +1374,7 @@ namespace Spine.Unity.Editor {
 				}
 				}
 
 
 				if (!tintBlack) {
 				if (!tintBlack) {
-					foreach (Material m in atlasAsset.materials) {
+					foreach (Material m in atlasAsset.Materials) {
 						if (m.shader.name.Contains(TintBlackShaderQuery)) {
 						if (m.shader.name.Contains(TintBlackShaderQuery)) {
 							tintBlack = true;
 							tintBlack = true;
 							break;
 							break;