Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrit committed Feb 28, 2024
1 parent 8e7d64a commit d05dfdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SeeSharp/IO/ObjConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ int RemapIndex(ObjMesh.Index oldIndex) {
emitters.TryGetValue(materialName, out emission);

IEnumerable<Emitter> emitter = null;
if (emissionOverride.TryGetValue(materialName, out EmissionParameters e))
if (emissionOverride?.TryGetValue(materialName, out EmissionParameters e) ?? false)
emitter = e.IsGlossy
? GlossyEmitter.MakeFromMesh(m, e.Radiance, e.Exponent)
: DiffuseEmitter.MakeFromMesh(m, e.Radiance);
Expand Down

0 comments on commit d05dfdb

Please sign in to comment.