fixed BlendShapeProxy.OnDestroy

This commit is contained in:
ousttrue
2019-01-22 10:23:08 +09:00
parent 6b5edd383d
commit 570409cf44

View File

@@ -149,7 +149,13 @@ namespace VRM
{
valueName = valueName.Substring(0, valueName.Length - 2);
}
material.SetColor(valueName, y.BaseValue);
#if UNITY_EDITOR
// restore only material with asset
if (!string.IsNullOrEmpty(UnityEditor.AssetDatabase.GetAssetPath(material)))
{
material.SetColor(valueName, y.BaseValue);
}
#endif
}
else
{