Fix build for MinGW without opencollada (updated libs coming soon), MinGW64 now builds with opencollada

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55712 954f8c5b-7b00-dc11-b283-0030488c597c
Compile fix: size_t (required by BLI_string.h) was undefined


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

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55715 954f8c5b-7b00-dc11-b283-0030488c597c
draw helper lines for inset and bevel operators, the mouse distance from the selection center was used, but often it was hard to tell where this was and you'd have to guess.
adds ED_region_draw_mouse_line_cb() generic draw callback for mouse helper lines.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55716 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for #34756 and #34810, crashes when dropping nodes onto noodles and a related forward compatibility bug.

Added a sanity check to the ED_node_link_insert function to ensure it exits gracefully if no suitable sockets can be found. This was the problem with custom pynodes, which don't define the 'type' DNA of old sockets. The operator will have to be generalized for future nodes, but for now just not crashing seems good enough.

Script node crashes in #34810 were caused by uninitialized 'type' integer as well. This is now done in the set_typeinfo function for sockets (like for trees and nodes too), to avoid any potential remaining issues of this kind. Note that new files need to be loaded and saved again once to be forward compatible again.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55717 954f8c5b-7b00-dc11-b283-0030488c597c
Key mapping conflict for 'find node' versus 'add socket link' (noodle).

Historically, F shortcut was for 'add edge/face' in Blender.
In Node editor, F makes a noodle, ctrl+f made a noodle replace too.

To keep ALT+F work for "Unattach from frame", the solution I now propose
is to make CTRL+F for finding nodes, and SHIFT+F for 'add noodle with replace'.




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55718 954f8c5b-7b00-dc11-b283-0030488c597c
Usability fix, for color grading.

The Scopes and Histogram (Image editor, Sequencer) were not updating on
changes in color or display settings. 

- Missing notifiers for refreshing
- Missing code to draw correct for managed byte buffers.




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55719 954f8c5b-7b00-dc11-b283-0030488c597c
Missing GLEW path in CMake, fixes compile error in OS X.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55720 954f8c5b-7b00-dc11-b283-0030488c597c
Fix compilation on MinGW(64/32)

Also, add appropriate lib paths for recent OpenCollada for mingw32 (coming soon to an svn server near you)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55721 954f8c5b-7b00-dc11-b283-0030488c597c
Removed leftover debug print.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55722 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34833: crash using SSS node on windows, invalid memory access when building lookup table.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55724 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34832: SSS render freeze with object instances.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55725 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix for [#34845] FFmpeg: .wav file playback crashes Blender since r55693


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55726 954f8c5b-7b00-dc11-b283-0030488c597c
Fix 34831: SSS issue with non-progressive render, due to error in closure merging code.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55727 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: small code cleanup + fix SSS closure mixed with other closures doing
a bit too much work.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55728 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34788, #34744: GLSL error, #version line needs to be at the top of the shader
and this wasn't the case anymore after recent changes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55729 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34711: matcap option not showing when switching from cycles material/rendered
draw mode to blender internal.

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

Sequencer histogram was calculating still badly, now it uses a per-color
component counter to calculate the levels (instead of counter for all)




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55731 954f8c5b-7b00-dc11-b283-0030488c597c
Fixes for recent GLSL display space conversions

- Building without OCIO will give correct results again
- If GLSL failed to compile, fallback to glaDrawPixelsAuto
  will happen.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55732 954f8c5b-7b00-dc11-b283-0030488c597c
More usage of GLSL for color managed image drawing

Uses GLSL for drawing image in Image Editor space.

This requires change in image_buffer_rect_update, so
original float buffer is being updated as well. This
is unlikely be something bad, but will keep an eye
on this change.

Also no byte buffer allocation happens there, this
is so because byte buffer used for display only
and in case of GLSL display such allocation and
partial update is just waste of time.

Also switched OpenGL render from using CPU color
space linearization to GLSL color space transform.
Makes OpenGL rendering pretty much faster (but
still slower than in 2.60).

internal changes:

- Added functions to setup GLSL shader for color
  space conversion in colormanagement.c. Currently
  conversion form a colorspace defined by a role to
  linear space is implemented. Easy to extend to
  other cases.

- Added helper functions to glutil.c which does
  smarter image buffer draw (calling all needed OCIO
  stuff, editors now could draw image buffer with a
  single function call -- all the checks are done in
  glutil.c).

- Also added helper function for buffer linearization
  from a given role to glutil.c. Everyone now able to
  linearize buffer with a single call.

  This function will do nothing is GLSL routines fails
  or not supported.

  And one last this: this function uses offscreen
  drawing, could potentially give issues on some
  cards, also will keep an eye on this.

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