Cycles / Wireframe node:
* Make sure we have valid geometry data, fixes a crash with Lamp objects.

Reported by lichtwerk in IRC, thanks!


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57017 954f8c5b-7b00-dc11-b283-0030488c597c
Solving ancient Blender window sizing issue;

- Removed grid-snapping for area coordinates on scaling windows. 
  That caused the areas to shrink or expand, and eventually corrupt screen layouts.

- Added simple but efficient life resize for OSX. I need to know why this is so much
  code for Windows... I suggest Windows to just copy same method; dispatch the queue,
  and just let the event system draw.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57018 954f8c5b-7b00-dc11-b283-0030488c597c
Some cleanup/reorganisation, and:
* Script should now remove relevant dirs in $INST when a package becomes suitable
* Script systematically runs relevant ldconfig commands when building boost/oiio

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

Mesh editmode, active face was always drawing same stipple pattern color, 
whether face is selected or not. 
Now it uses selection color + stipple. Looks much more consistent.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57023 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh: copy function - replace use of array reallocations with alloca in a static function.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57024 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh: replace array reallocation with a single face array and use STACK macros.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57025 954f8c5b-7b00-dc11-b283-0030488c597c
Live resize on Windows. Based on Ton's patch for mac.
Removing old resize stuff. 
Windows has resize lag, which creates black gap with openGL. Still looking to fix it.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57026 954f8c5b-7b00-dc11-b283-0030488c597c
fix for incorrect type casting when checking macros exec() functions.
infact this worked by accident, but didn't crash.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57027 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: quiet pedantic warning in array macro.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57028 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh: replace BLI_array reallocs with alloca, also don't check all faces for connecting verts.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57032 954f8c5b-7b00-dc11-b283-0030488c597c
Various fixes. Tested with OpenSuse 12.3 (amd64).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57033 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / OSL:
* Rename fresnel_dielectric() to fresnel_dielectric_cos() to match SVM, easier when searching code. 
* Also remove an old code comment in bsdf_reflection.h from Cycles branch days. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57035 954f8c5b-7b00-dc11-b283-0030488c597c
Fixed own error: used wrong iteration count for cleaning weight groups

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57037 954f8c5b-7b00-dc11-b283-0030488c597c
the viewport align-active option was flipping the viewport direction,
now you can add an object, enable align to view, then align the view back to the object without flipping.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57038 954f8c5b-7b00-dc11-b283-0030488c597c
BLI_math rename functions:
- mult_m4_m4m4 -> mul_m4_m4m4
- mult_m3_m3m4 -> mul_m3_m3m4

these temporary names were used to avoid problems when argument order was switched.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57039 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Hair:
* Fix a condition in the hair BVH code. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57041 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Fresnel:
* Avoid redundant assignment and use correct Normal for Ray Differentials. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57042 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35518] UV Mapping crashes the Blender with specific image file

2 bugs here
- missing NULL check in IMB_colormanagement_display_settings_from_ctx()
- deadlock in draw_image_paint_helpers()

Simple solution is to not draw paint helpers for render/viewer images.


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


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