Hi,
I've been having a problem whereby I cannot change a Material's
component constant _from_ white and I've modified
Material::Component::similarTo() to fix this by changing the final
return to check the constant:
// Two components are similar if they both have/do not have texture
// maps and constants.
return map.isNull() == other.map.isNull() &&
constant == other.constant;
This works for me but I guess it would also be possible to change
Material::isWhite() to not include the null map condition in the same
way as isBlack(). I'm not sure of the implications of that though.
---
Martin Pitt
http://hothouse3d.com