Merge pull request #1419 from Santarh/fixWarning

Suppress compler warning `unreachable code detected warning` when `VRM_DEVELOP` symbol is undefined.
This commit is contained in:
ousttrue 2021-12-10 17:56:25 +09:00 committed by GitHub
commit 93defb5ed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,12 +7,16 @@ namespace VRMShaders
/// VRMShaders が最下層になるため、ここに配置している
/// </summary>
/// <value></value>
public const bool VRM_DEVELOP =
public static bool VRM_DEVELOP
{
get
{
#if VRM_DEVELOP
true
return true;
#else
false
return false;
#endif
;
}
}
}
}