Skip to content

Commit

Permalink
allow missing MatSettings in ModelExpandParams
Browse files Browse the repository at this point in the history
  • Loading branch information
jupahe64 committed Dec 21, 2023
1 parent 8c7fa13 commit 9854a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fushigi/ui/widgets/LevelViewport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ private void ActorModelExpand(CourseActor actor, BfresRender.BfresModel model, s
Math.Max(actor.mScale.Y, setting.mMinScale.Y)
);

foreach (var matParam in setting.mMatSetting.MatInfoList)
foreach (var matParam in setting.mMatSetting?.MatInfoList ?? [])
{
var material = model.Meshes.Select(x => x.MaterialRender)
.FirstOrDefault(x=>x.Name.EndsWith(matParam.mMatNameSuffix));
Expand Down

0 comments on commit 9854a7d

Please sign in to comment.