Skip to content

Commit 7492efb

Browse files
committed
fix NRE
1 parent dff29af commit 7492efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/DynamicProperties/Patches/PartPatch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ private static void CreateRendererLists_Postfix(Part __instance)
2525
props.SetFloat(PropertyIDs._RimFalloff, 2f);
2626
props.SetColor(PropertyIDs._RimColor, Part.defaultHighlightNone);
2727
foreach (var renderer in __instance.HighlightRenderer) {
28-
MaterialPropertyManager.Instance.Set(renderer, props);
28+
MaterialPropertyManager.Instance?.Set(renderer, props);
2929
}
3030
}
3131

0 commit comments

Comments
 (0)