Fix the normal palette not being used if ModelWidget has no player palette

This commit is contained in:
abcdefg30
2023-10-12 18:30:44 +02:00
committed by Gustas
parent e76d89f0db
commit a960eb471b

View File

@@ -194,7 +194,7 @@ namespace OpenRA.Mods.Cnc.Widgets
renderer,
animations, WPos.Zero, origin, 0, cachedCameraRotation, scale,
cachedLightSource, lightAmbientColor, lightDiffuseColor,
paletteReferencePlayer, paletteReferenceNormals, paletteReferenceShadow);
paletteReferencePlayer ?? paletteReference, paletteReferenceNormals, paletteReferenceShadow);
renderable = modelRenderable.PrepareRender(WorldRenderer);
}