fix for own commit r56204, wasnt checking edges exist before adding.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56332 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35102: crash with experimental cycles displacement feature due to
uninitialized memory usage.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56333 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Small fix to allow clip alpha to work with alpha shadows.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56334 954f8c5b-7b00-dc11-b283-0030488c597c
Fix part of #34233: bad alpha blending for 2D image painting. This is a very
old issue, the formulas here were never quite right, should all work ok now
with byte and float images.

Some differences:

* Colors with zero alpha from the background will never have an influence, so
  you don't get alpha fringes when painting over such areas. This does give
  hard edges when looking at the RGB channels alone, but there's no way to
  avoid that and fringes at the same time, same behavior as other painting apps.

* Add/Subtract/Multiply/Lighten/Darken now leave the alpha channel unchanged
  and work only the RGB channels, again same behavior as many other apps.

* Erase/Add alpha now compensates for premultiplied float images to keep the
  straight RGB colors the same.

Next: fix projection painting.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56337 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35113: solidify modifier not preserving clamp option on duplicating the
object or modifier.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56338 954f8c5b-7b00-dc11-b283-0030488c597c
"Bug" & usability fix, own collection.

Color Pickers in Blender support precision editing with holding Shift key.
Unfortunately, on first click the picker cursor moves to the mouse position,
making the precision dragging quite useless.

Now, if you hold Shift, the picker editing will only apply the delta motion
of your mouse drags, making it much nicer for fine tuning of color grades
in Sequencer or Compositor.




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56339 954f8c5b-7b00-dc11-b283-0030488c597c
Some color space issues in sequencer:

Sequencer was always trying to do GLSL color space
conversion, not respecting user settings at all.

This failed a lot when RGB curves a used in color
management settings.

Now sequencer will fallback if GLSL can not be used
and will also respect user settings (however, draw
pixels are not supported, sequencer always uses 2D
textures).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56340 954f8c5b-7b00-dc11-b283-0030488c597c
Print error log to the console if OCIO shader compilation failed

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56341 954f8c5b-7b00-dc11-b283-0030488c597c
Apparently better not to use values like 1.0f in GLSL code

Fix from debug session of self and Ton, was affecting OSX
builds, making GLSL display transform not working on this
platform.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56342 954f8c5b-7b00-dc11-b283-0030488c597c
Premultiplication in OCIO shader went wrong,
it used to apply alpha on source color after
conversion, not on result.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56343 954f8c5b-7b00-dc11-b283-0030488c597c
quiet warning, color blend c file was missing own include, also minor style tweaks.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56344 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for fix in alpha de-premul

We do not need to premul shader result, opengl
is already configured for straight alpha.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56345 954f8c5b-7b00-dc11-b283-0030488c597c
Solve possible uninitialized variables usage in sequencer draw function

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56346 954f8c5b-7b00-dc11-b283-0030488c597c
add vertex color smooth operator.

Since the bug was fixed that made blur brush _not_ blur all verts, there is no way to blur vertex colors after baking.
While this was hidden it was useful especially for baking vertex colors.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56347 954f8c5b-7b00-dc11-b283-0030488c597c
remove unused function: projectf


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56348 954f8c5b-7b00-dc11-b283-0030488c597c
BLI_strlen_utf8 was doing size_t / int conversion unnecessarily.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56349 954f8c5b-7b00-dc11-b283-0030488c597c