Merge pull request #1904 from Santarh/suppressPreprocessor

Use static getter instead of preprocessors.
This commit is contained in:
ousttrue
2022-11-04 14:06:37 +09:00
committed by GitHub
18 changed files with 119 additions and 91 deletions

View File

@@ -55,9 +55,6 @@ namespace VRMShaders
if (!x.UseExternal)
{
// 外部の '.asset' からロードしていない
#if VRM_DEVELOP
// Debug.Log($"Destroy {x.Asset}");
#endif
UnityObjectDestroyer.DestroyRuntimeOrEditor(x.Asset);
}
}

View File

@@ -15,6 +15,18 @@ namespace VRMShaders
return true;
#else
return false;
#endif
}
}
public static bool VRM_NORMALIZE_BLENDSHAPE_TANGENT
{
get
{
#if VRM_NORMALIZE_BLENDSHAPE_TANGENT
return true;
#else
return false;
#endif
}
}