Fix typo made back in svn rev35785

Callback handle was assigning to wrong storage in RE_draw_lock_cb.
So far it was completely harmless because all the callbacks are
using the same handle, so test_break_callback was using correct
handle, and since draw_lock_callback didn't use handle at all
nobody noticed this.

But this typo lead to draw_lock_callback using NULL instead of
real RenderJob, which is bad for the feature we're working in
GSoC branch.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57725 954f8c5b-7b00-dc11-b283-0030488c597c
Include DNA_scene_types before ED_object instead of forward enum declaration

Forward enum declaration is a bad idea, especially for C++ which requires
enum specification to dteermine which data type to use to store it.

Alternative would be to not use enum as an arument and pass it as int,
but actually would rather be strict on typing -- using explicit enum
as parameter type helps understanding the code and prevents possible
mistakes when using the function.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57728 954f8c5b-7b00-dc11-b283-0030488c597c
Use bit-shift op for all bit-flags.

Btw, there is a comment stating that bits 12-15 are the same for uiBlock->flag and uiBut->flag, this is obviously no more true currently (maybe it is now bits 14-17, i.e. ALIGN flags?).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57730 954f8c5b-7b00-dc11-b283-0030488c597c
new weight operators had zero min/max range for the 'weight_group'


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57732 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#35830] Add Catmull-Rom spline as an option for lattice deformer


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57733 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35715: graph editor > channels > move.. menu item showed wrong keyboard shortcut.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57734 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34909 Texture paint mode does not correctly update when using
textures larger than 2048x2048.

Check if texture is over user preference or GPU limit in texture paint
mode and if it is, scale the partial redraw rectangle before uploading
to GPU. This should be faster than rescaling the whole texture.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57735 954f8c5b-7b00-dc11-b283-0030488c597c
Fix part of #35859: lib linking errors were not shown when opening files through open recent.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57736 954f8c5b-7b00-dc11-b283-0030488c597c
set line endings to native


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57737 954f8c5b-7b00-dc11-b283-0030488c597c
correct assertion error (clear dirty normal flag when there are no vertices)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57738 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35824: finding missing files not working correct for filepaths with special
characters on Windows.

Replaced some uses of stat() by BLI_stat() to properly handle such filepaths.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57739 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35846: crash rendering with dupligroups visible in 3D viewport during render
in some cases. The dupli code would still do object updates during render indirectly,
while this is disabled for thread safety everywhere else, now we disable it for this
case as well.

Not a pretty solution but this is for the depgraph refactor to solve.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57740 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35546: clicking cycles "Use Nodes" did not do a proper undo push, due to
button disappearing as soon as it's clicked. Workaround now is to make this an
operator. Thanks to Lukas and Campbell for tracking this down.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57741 954f8c5b-7b00-dc11-b283-0030488c597c
set newlines to native


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57742 954f8c5b-7b00-dc11-b283-0030488c597c
quiet double promotion warning and some style cleanup


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57743 954f8c5b-7b00-dc11-b283-0030488c597c
disable vertex editing when weight group is locked

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57744 954f8c5b-7b00-dc11-b283-0030488c597c
disable normalize when active vertex contains locked weights

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57746 954f8c5b-7b00-dc11-b283-0030488c597c
Rename operator for better clarity

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57747 954f8c5b-7b00-dc11-b283-0030488c597c
correct typos in comments.


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