Skip to content

Commit

Permalink
1.6.0
Browse files Browse the repository at this point in the history
HDRP12
  • Loading branch information
soupday committed Nov 29, 2023
1 parent 64737cc commit bc0e808
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Editor/Importer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2485,7 +2485,11 @@ private void AddWrinkleManager(GameObject obj, SkinnedMeshRenderer smr, Material
WrinkleManager wm = obj.AddComponent<WrinkleManager>();
wm.headMaterial = mat;
wm.skinnedMeshRenderer = smr;
float overallWeight = matJson.GetFloatValue("Wrinkle/WrinkleOverallWeight");
float overallWeight = 1;
if (matJson.PathExists("Wrinkle/WrinkleOverallWeight"))
{
overallWeight = matJson.GetFloatValue("Wrinkle/WrinkleOverallWeight");
}
wm.BuildConfig(BuildWrinkleProps(matJson), overallWeight);
}

Expand Down

0 comments on commit bc0e808

Please sign in to comment.