[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33650] trunk/blender/source/blender/ makesrna/intern/rna_define.c: disallow RNA color values to be set to negative values.

Matt Ebb matt at mke3.net
Tue Dec 14 06:10:44 CET 2010


On Tue, Dec 14, 2010 at 3:44 PM, Campbell Barton <ideasman42 at gmail.com> wrote:

> Log Message:
> -----------
> disallow RNA color values to be set to negative values. Material colors could be set to -100.0 if typed in manually, this is sure to cause bad/unpredictable behavior.

If this is a problem for materials, then it should be set in the
material colour's range functions. Forcing all colour properties to
have these limits is too heavy handed - It's not sure to cause bad
behaviour, there are plenty of cases where you might want negative
values in a colour property - doing things in the compositor for
example.

Matt


More information about the Bf-committers mailing list