fix [#32433] Grease Pencil Layer color & Color Management


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50269 954f8c5b-7b00-dc11-b283-0030488c597c
clamp for Mix node
the implementation was following my early commit for Math node
I haven't had a chance to run those through Brecht, but would like to do eventually. (they work fine though)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50271 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#32440] Segmentation fault when moving bone in pose mode when Ghost
Around Frame is enabled

It turns out that the final "rebuild pose" at the end of each ghost drawing step
was at fault here, as it resulted in bones referring to a different set of
constraints after each ghost drawing step. However, most of the time, these new
references pointed to non-existent locations, causing the segfaults.

To fix this, I've removed this last rebuild step, which seems to work fine (no
major problems seem to arise from this). Also, to ensure that the other object
parameters have not changed (as a result of the reevaluation that needs to go
on), we now evaluate the object once more after all the ghost drawing (but
before final restore) so that object parameters (and potentially sub-data) are
all restored to their original values.

An upside of removing the final rebuild step is that "In Range" and "On
Keyframe" ghosting options now work with proxies again. Previously, trying to
move bones (but without autokey enabled) would mean that bones would snap back
to their unkeyed positions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50272 954f8c5b-7b00-dc11-b283-0030488c597c
Style cleanup - make scope and type of "pchanw" clearer (and define it separate
from pointer references)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50273 954f8c5b-7b00-dc11-b283-0030488c597c
Style cleanup - adding some braces around some multi-line statements (used after
if/else if/for)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50274 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#32437] Cannot define Alt-E keybinding in Text Editor window

WM_keymap_add_item(keymap, "TEXT_OT_insert", KM_TEXTINPUT, KM_ANY, KM_ANY, 0);
<---  this catch-all key map item at the end of the Text Editor keymap was
gobbling all the key events for user-defined hotkeys added after it in the
keymap. This includes all hotkeys for new operators defined by addons (via
keymap.keymap_items.new()).

As a slightly hacky workaround for this, I've added an extra parameter to
keymap_items.new() which will force the newly added item to get added to the
start of the key map items list (i.e. with top priority). To enable, simply add,
head=True    to keymap_items.new() calls. For example:
    keymap.keymap_items.new("MY_OP_my_operator_id", type='E', value='PRESS',
alt=True, head=True)

This should be useful for cases where there are similar catch-alls, where it is
necessary to insert our item before the offending catch-all (without knowing
which one it is). However, in general, it's recommended not to use this, unless
all other methods (inlcuding choosing another key combination if your first
choice doesn't work) fails.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50276 954f8c5b-7b00-dc11-b283-0030488c597c
Silencing compiler warning (use of undefined value)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50277 954f8c5b-7b00-dc11-b283-0030488c597c
Possible fix for #32446: after undo in mesh edit mode, vertex/edge/face
selection syncing would not work correct, in this case deselecting an edge
would deselect the two vertices even if it wasn't needed.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50278 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#32249] Groups in Dopesheet and Action editor don't get updated after
bone renaming

* Renaming F-Curves now checks if the corresponding F-Curve's group can also be
renamed accordingly.
* Changed the RNA updates for bone renaming so that they properly update the
channel lists


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50280 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32405: snapping in UV editor does not work if snapping in 3D view is set
to "snap to face" with "project individual ..." enabled.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50281 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32404: GLSL normal maps using float images were incorrectly getting
color managed.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50282 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32402: live unwrap memory leak, more noticeable if you have many UV's pinned.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50283 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32418: color copy/paste between gamma and linear color buttons gave wrong
results, now it does the conversion.

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