mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 00:30:12 +08:00
[unity] Fixed a build error when prefab is referenced. See commit c2cbdc57. See #1273,#1931.
This commit is contained in:
parent
ac86ef9ce8
commit
bf70a62f1b
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user