mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-28 22:03:28 -05:00
remove PreviewMaterialItem.RestoreInitialValues. use PreviewMaterialItem.Clear
This commit is contained in:
@@ -115,7 +115,7 @@ namespace UniVRM10
|
||||
{
|
||||
foreach (var kv in m_materialMap)
|
||||
{
|
||||
kv.Value.RestoreInitialValues();
|
||||
kv.Value.Clear();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -71,14 +71,6 @@ namespace UniVRM10
|
||||
set;
|
||||
}
|
||||
|
||||
public void RestoreInitialValues()
|
||||
{
|
||||
foreach (var prop in PropMap)
|
||||
{
|
||||
Material.SetColor(prop.Value.Name, prop.Value.DefaultValues);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly string COLOR_PROPERTY = MToon10Prop.BaseColorFactor.ToUnityShaderLabName();
|
||||
public static readonly string EMISSION_COLOR_PROPERTY = MToon10Prop.EmissiveFactor.ToUnityShaderLabName();
|
||||
public static readonly string RIM_COLOR_PROPERTY = MToon10Prop.ParametricRimColorFactor.ToUnityShaderLabName();
|
||||
|
||||
Reference in New Issue
Block a user