mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-10-01 15:22:53 -05:00
fixed BlendShapeProxy.OnDestroy
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user