patch 21737 by Elia Sarti (vekoon)
authorDaniel Salazar <zanqdo@gmail.com>
Wed, 28 Apr 2010 09:29:17 +0000 (09:29 +0000)
committerDaniel Salazar <zanqdo@gmail.com>
Wed, 28 Apr 2010 09:29:17 +0000 (09:29 +0000)
commit0b49c6255fbff9aaccf8d3fbc34d94e2d0d64ece
treede37bbdd206cd490f51cc50685f108cf15dfd911
parentc757c66f92e5bfacb4c3907fe0b667a41b8625a3
patch 21737 by Elia Sarti (vekoon)

Currently for ColorBands, when pressing the Add button, new elements are
set with a medium gray in a medium position which often is not desired
behaviour.

This patch when possible sets new elements as averaged values between
the current element and its preceding neighbour
source/blender/editors/interface/interface_templates.c