Ludeon Forums

RimWorld => Bugs => Topic started by: Fluffy (l2032) on May 02, 2016, 01:56:05 AM

Title: A13 - LookList( x, x, LookMode.Undefined ) doesn't handle Unity.Color
Post by: Fluffy (l2032) on May 02, 2016, 01:56:05 AM
In my latest mod, I'm trying to map colors to relationshipdefs. This works fine with a DefMap<PawnRelationDef, Color>, until I want to scribe the DefMap. The DefMap uses Scribe_Collections.LookList( x, x, LookMode.Undefined ) to automatically resolve to the correct mode, but for colors it erroneously picks LookMode.Deep.

Expected behaviour: LookMode.Undefined resolves to LookMode.Value for Color objects.
Title: Re: A13 - LookList( x, x, LookMode.Undefined ) doesn't handle Unity.Color
Post by: ison on May 25, 2016, 06:39:46 AM
Fixed, thanks.