code cleanup: remove unused struct


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57186 954f8c5b-7b00-dc11-b283-0030488c597c
use booleans for modifiers and api callbacks.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57187 954f8c5b-7b00-dc11-b283-0030488c597c
corrections to modifiers from recent normal handling changes
- solidify didn't define a dependsOnNormals callback (which it should have)
- build wasn't passing on dirty normals.
- decimate wasnt setting dirty normals.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57188 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for potential division by zero during Freestyle stroke rendering.
Problem report by Light BWK through personal communications with a
sample .blend file for reproducing the problem.  Thanks!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57189 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup / Cycles:
* Avoid 2 int castings in hair code and fix some comments. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57190 954f8c5b-7b00-dc11-b283-0030488c597c
Recompile z-lib with deflate_copyright marked as static

This is an essential change to make next commit working.
Without this change deflate_copyright would conflict with
one defined in OpenEXR library.

This symbol is actually marked as local in the map file,
so maybe proper solution would be to make MSVC aware of
this map file, but not sure whether it's possible or not.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57191 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35587: Cycles: image movie to single image crashing

Crash was happening on windows platforms only and was caused
by some specifics about how CRT works.

Basically, blender and all of the .dll are compiled with /MT
flag, which means blender.exe and all .dll are using separate
environments. This makes it impossible to pass file descriptors
from blender to other dll, because it becomes invalid in the dll.

And this is exactly what was happening: OIIO was trying to open
movie file with all known plugins and one of them was zlib. And
the way OIIO was using zlib API is opening the file using Boost
and passing a file descriptor to zlib. And since zlib was a
dynamic library this lead to general issues using this descriptor
in zlib code.

Solved by linking to zlib statically. This allows to safely pass
file descriptor to zlib API. Alternative would be to compile all
the stuff with /MD flag, but that's much bigger and less robust
way to fix the issue.

Tested on windows using msvc2008, scons plus cmake both 32 and 64
bit versions. Seems to be working fine.

Further tweaks for mingw and msvc2012 could be needed tho.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57192 954f8c5b-7b00-dc11-b283-0030488c597c
Windows MSVC 2008 x86 libs maintenance:

- Downgrade OpenImageIO to version 1.1.11
- Recompiled OSL 1.3 (depends on OIIO)
- Updated build.bat and build.patch for new version of OIIO
- Updated readme.txt to correct version numbers

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57193 954f8c5b-7b00-dc11-b283-0030488c597c
MSVC 2012 x86 libs maintenance:

- Recompiled zlib to reflect changes in r57192 by Sergey Sharybin.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57194 954f8c5b-7b00-dc11-b283-0030488c597c
tweak to recent commit, don't show keymap in menu tooltips.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57195 954f8c5b-7b00-dc11-b283-0030488c597c
fix for crash in edgering subd when 3+ disconnected edge rings were found.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57196 954f8c5b-7b00-dc11-b283-0030488c597c
Windows MSVC 2008 x64 libs maintenance:

- Downgrade OpenImageIO to version 1.1.11
- Recompiled OSL 1.3 (depends on OIIO)
- Updated build.bat and build.patch for new version of OIIO
- Updated readme.txt to correct version numbers


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57197 954f8c5b-7b00-dc11-b283-0030488c597c
MSVC 2012 x86 libs maintenance:

- Removed uneeded libs.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57198 954f8c5b-7b00-dc11-b283-0030488c597c
add vertex slide to mesh edit toolbar. also expose merge as a menu (rather then button causing popup)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57199 954f8c5b-7b00-dc11-b283-0030488c597c
Better API design for making text datablocks after loading.

An optional 'internal' argument was added to the bpy.data.texts.load() operator.  
The changes in revision 57153 were reverted, so that the is_in_memory and is_dirty
properties of text datablocks are not editable again.

In the C API layer, BKE_text_load_ex() was introduced to allow for optionally
making text datablocks internal after loading.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57200 954f8c5b-7b00-dc11-b283-0030488c597c
MSVC 2012 x64 libs maintenance:

- OpenEXR 2.0.0 recompiled
- png 1.6.1 recompiled
- added Python 3.3.2 debug libs and symbols
- added Python debug redist package
- Recompiled zlib to adapt changes in r57191/r57192
- added yaml 0.3.0 debug lib and symbols

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57201 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35599: MovieClip node crashes when using multilayer exr

Multilayer EXR is not supported as a source for movie clip yet,
but there's no excuse to crash!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57202 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Math functions:
* Rename some math functions:
len -> length
len_squared -> length_squared
normalize_len -> normalize_length

* This way OpenCL uses its inbuilt length() function, rather than our own. The other two functions have been renamed for consistency. 
* Tested CPU, CUDA and OpenCL compile, should be no functional changes. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57203 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35434] Segmentation fault switching screen layout from python
(take 2), only free popup handlers.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57204 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35489] mode_set() not working in background mode, Scene change doesn't change mode either


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