code cleanup: header cleanup, remove commented workaround for mingw since its no longer needed.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45433 954f8c5b-7b00-dc11-b283-0030488c597c
update python keywords (remove exec, print, add nonlocal)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45434 954f8c5b-7b00-dc11-b283-0030488c597c
remove unused theme color


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45435 954f8c5b-7b00-dc11-b283-0030488c597c
fix crash with stack memory usage for the knife tool.
knife cutting ~25000 faces would crash with 8mb stack set.

fix by removing generic iterators in functions which do recursive calls.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45436 954f8c5b-7b00-dc11-b283-0030488c597c
some pedantic load time speedup by not loading modules (math and subprocess in this case)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45437 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: add doxygen headers to bmesh operator files, also add own include so definitions dont get out of sync.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45438 954f8c5b-7b00-dc11-b283-0030488c597c
Ghost:
* Typo fix, preventing mingw to compile.
Found by XercesBlue in IRC:

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45439 954f8c5b-7b00-dc11-b283-0030488c597c
option to have inset face select the interior faces (mango request)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45440 954f8c5b-7b00-dc11-b283-0030488c597c
Windows x64 / Scons:
* Enable WITH_BF_OPENJPEG per default, it was enabled for 32 bit systems, why not on x64? 
* This brings back JPEG 2000 support for win x64.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45441 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#30832] Weight on Bevel modifier has no effect for edges with weight.

Added missing CD_BWEIGHT layer for the modifier's DerivedMesh.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45442 954f8c5b-7b00-dc11-b283-0030488c597c
Animation version patching for Absolute Shape Keys ("speed" curve ->
"eval_time") now works


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45443 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh minor change - avoid increasing array sizes one by one and use iterator macros.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45444 954f8c5b-7b00-dc11-b283-0030488c597c
Smoke: Use better standards for inflow
a) Set particle system for inflow to " show unborn"
b) Set particle system for inflow to lifetime = 1

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45445 954f8c5b-7b00-dc11-b283-0030488c597c
Smoke: Fix for last commit; It wasn't possible to change the particle system settings anymore. Reported by zeauro. Thanks!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45447 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: fix nan's generated by glossy BSDF in some cases.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45448 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #30798: when linking a datablock, it got simply added to the back of the
list, now the linked datablocks are sorted by name too (but still appear after
the non-linked datablocks).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45449 954f8c5b-7b00-dc11-b283-0030488c597c
Temporary gzopen fix for for Windows
If we open file for write, we create a new file and close it. Therefore we have existing path for GetShortPathName.

Strangely zlib fails on gzclose if file descriptors are used.

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