Skip to content

Commit

Permalink
[unity] Fix unneeded Unity 5 compiler condition.
Browse files Browse the repository at this point in the history
Also fixes compatibility with Unity 2017
  • Loading branch information
pharan committed Apr 15, 2017
1 parent b0a25f5 commit 2cd9467
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spine-unity/Assets/spine-unity/Mesh Generation/SpineMesh.cs
Expand Up @@ -32,11 +32,9 @@

namespace Spine.Unity {
public static class SpineMesh {
#if UNITY_5

internal const HideFlags MeshHideflags = HideFlags.DontSaveInBuild | HideFlags.DontSaveInEditor;
#else
internal const HideFlags MeshHideflags = HideFlags.DontSave;
#endif

/// <summary>Factory method for creating a new mesh for use in Spine components. This can be called in field initializers.</summary>
public static Mesh NewMesh () {
var m = new Mesh();
Expand Down

0 comments on commit 2cd9467

Please sign in to comment.