Making sure free_nodesystem only frees non-NULL data. This helps address some problems in the BGE with loading multiple blendfiles.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57711 954f8c5b-7b00-dc11-b283-0030488c597c
Render stats text: show elapsed time for blender internal, hide useless "Single Layer"
at the start, more clearly indicate what the render time of the last frame was, some
other tweaks for consistency.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57712 954f8c5b-7b00-dc11-b283-0030488c597c
Fix unnecessary redraw of 3D views when making changes in compositing nodes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57713 954f8c5b-7b00-dc11-b283-0030488c597c
Fix unnecessary 3D viewport redraws in various cases, in particular when editing
node materials.

Area and region listener callbacks now get the screen and area pointers passed, so
they can do more fine grained checks to see if redraw is really needed, for example
depending on the 3D view drawtype.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57714 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35767: transforming nodes in the node editor changed the wireframe color
of the active object in the 3D view. This was due to sharing a global G.moving
flag to indicate that transform is active, now it's only set per transform data
type so different editors don't influence each other.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57715 954f8c5b-7b00-dc11-b283-0030488c597c
Fix particle hair display percentage not properly getting restored after
rendering. This used to happen in an unneeded frame change update which was
removed. For heavy particle systems this could have a bad impact on viewport
performance after rendering.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57717 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for invalid zero-length orientation vectors.
Problem report by flokkievids in the BA Freestyle thread, thanks!

Also made changes to suppress warnings in strip creation when Freestyle debugging is disabled.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57718 954f8c5b-7b00-dc11-b283-0030488c597c
Fix OpenGL render not working correct with display color space set to None
(color management off).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57720 954f8c5b-7b00-dc11-b283-0030488c597c
Attempt to workaround mingw64 buildbot issue with Windows command length limits,
by splitting the compositor module into 3 parts. The operating system limit is
32767, which gives less than 120 characters per file with 272 cpp files.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57722 954f8c5b-7b00-dc11-b283-0030488c597c
Buildbot: another workaround for the Windows command length limit, this time
with the freestyle module which has 242 cpp files.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57723 954f8c5b-7b00-dc11-b283-0030488c597c
Buildbot: disable command length workaround for now, seems to give link errors.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57724 954f8c5b-7b00-dc11-b283-0030488c597c
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