From bf70a62f1bff28205be98b279d85f06cd5464bb8 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Thu, 5 Aug 2021 17:17:15 +0200 Subject: [PATCH] [unity] Fixed a build error when prefab is referenced. See commit c2cbdc57. See #1273,#1931. --- .../Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs index d5b5a5f2f..b5cb25e5a 100644 --- a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs +++ b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs @@ -114,6 +114,7 @@ namespace Spine.Unity.Editor { var mesh = meshFilter.sharedMesh; string meshName = string.Format("Skeleton Prefab Mesh \"{0}\"", renderer.name); mesh.name = meshName; + mesh.hideFlags = HideFlags.DontSaveInEditor; // removed flag DontSaveInBuild, prevents a build error when the prefab is referenced context.AddObjectToAsset(meshName, mesh); } }