Apparently, you shall not define variables in the middle of the block

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55800 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#34857]: Negative temp.diff. in a smoke simulation doesn't work.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55801 954f8c5b-7b00-dc11-b283-0030488c597c
Bundle current master of ceres-solver

Thins brings up some speed improvements:

SPARSE_SCHUR is approx 1.3-1.5x times faster
ITERATIVE_SCHUR is approx 1.2x times faster

For blender this means camera solution go a bit
faster now. Would not have affect on tracking
speed.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55802 954f8c5b-7b00-dc11-b283-0030488c597c
Update libmv to current upstream version

- Solves some strict compilation warning
- Style/code cleanup

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55803 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34872: Every images are displayed as black in UV/image editor

Issue was caused by some mesa drivers does not support GL_RGBA16F.

Now added check around glTexImage2D to verify whether requested
internal format is actually supported. If not blender will fall
back to non-GLSL image display.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55804 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for compositor bug found by Ton Roosendaal. Color Balance node was using wrong socket index to map the operation socket to the UI node socket.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55805 954f8c5b-7b00-dc11-b283-0030488c597c
Fixed typo in OCIO GLSL module, was using address to a pointer..

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55806 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34873, Custom min/max node values get reset randomly while working and on save and quit. Node group socket interface was not storing the default_value struct in writefile.c, forgot to add this back when returning to DNA data for node sockets.

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

* Change coordinates of stencil to float, helps with precision during
property manuipulations
* Expose stencil properties to RNA.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55808 954f8c5b-7b00-dc11-b283-0030488c597c
First fix for install_deps and ubuntu 10.04 (no libtiff5, only libtiff4, wonder why this package does not work as jpeg or png ones)...

This allows compilation of OIIO, install_deps.sh still working though (on this old OS, all libs have to be compiled, takes time... :/).

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

* Shift-Rclick and holding right click, x or y will trigger constrained
scaling of overlay. Pressing again will revert to uniform scaling.
* Added operator, visible under the mapping drop menu, to fit stencil
aspect ratio to brush image aspect ratio.
* Made it possible to access stencil attributes from python as vec.x,
vec.y. Thanks to kgeogeo for pointing out!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55810 954f8c5b-7b00-dc11-b283-0030488c597c
More fixes for install_deps.sh under ubuntu 10.04: git package is called "git-core", and 'apt-cache policy' returns a different result than newer versions when no package is found, changed the "available deb package" test to use "apt-cache show" instead.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55811 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use bool's for vgroup and editmode.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55812 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#34881] Bad characters in error output (PyConsole) if trying to use a Bmesh UV Layer on a BMVert


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55813 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: quiet some warnings and style


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55815 954f8c5b-7b00-dc11-b283-0030488c597c
Keep brush overlays below panels in triple buffer mode.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55817 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34679: cycles image texture alpha fringes. New rule is now that color output
will not give straight RGB values if the alpha output is used, so that mixing with
a transparent BSDF gives the correct result.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55818 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34877: The render status feedback (progress bar) does not take into account specific Renderlayer samples

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55821 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup / Cycles / Object Attributes:
* Change some long "else if" conditions into switch case. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@55822 954f8c5b-7b00-dc11-b283-0030488c597c
Bug fix #34866

Global undo/redo now clears the local undo editmode stack entirely.

Error goes back to the 2.3 days, when undo was added.

Global undo refreshes the entire internal database, so all ID pointers get invalid.
This cases editmode undo storage to fail, if it uses ID pointers as well.

The error was that for any Mesh undo stack, a single global undo would make the
mesh stack corrupt. Back in edit mode, on undo you'd lose assigned texture images, 
or get bad crashes.

The downside is that people expect this to work... it's a fun feature to maintain
stacks separately. Having this instable is not acceptable though. Needs quite some
redesign work to solve it (like Dalai's kill-the-tface project :)



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