report exceptions when enabling and disabling modules in blenders interface.
so if pressing the addon checkbox fails it tells why rather then failing silently.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57561 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35792] Submenus not opening properly on mouse move
caused by own fix for [#35346], now only apply wiggle room for toplevel menus.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57562 954f8c5b-7b00-dc11-b283-0030488c597c
alternate fix for r57562. check if the mouse is over the parent menu.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57563 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35793] Crash When Painting Gradient Weight


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57564 954f8c5b-7b00-dc11-b283-0030488c597c
move modifier callback wrappers into modifier.c


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57565 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35795] Edge split modifier do not show result in viewport with curves.

caused by recent changes in normal calculation, however curves were not being very smart about calculating modifiers (calling unneeded re-tessellation for every modifier)


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

Perhaps real fix would be to make all parts of blender
mandatory and not switchable off, so every area of code
would be compiled and verified after no-functional-changes
commits.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57567 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35773: Drag-to-Open failed in Movie Clip Editor

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57568 954f8c5b-7b00-dc11-b283-0030488c597c
dont use 'if(${WITH_STATIC_LIBS})', no need to expend the variable.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57571 954f8c5b-7b00-dc11-b283-0030488c597c
fix for filesel autocomplete, it had the annoying behavior if you entered in a non-existing name, of executing it and then asking to add the dir.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57572 954f8c5b-7b00-dc11-b283-0030488c597c
Take precision into account for calculating display of small numbers

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57573 954f8c5b-7b00-dc11-b283-0030488c597c
ui precision drawing - avoid calling pow(10, -prec) since the range is small use a fixed array.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57574 954f8c5b-7b00-dc11-b283-0030488c597c
fix own regression with normal recalculation updates


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57575 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for expanded enums with icon_only enabled, name of each item was still used to compute its button's size!

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

For users without middle-mouse buttons, they can now use Circle and Border
deselect by holding SHIFT. Middle mouse still works too.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57577 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for Debug build on MSVC2008 and MSVC2012 after Cycles Kernel optimization:

Compiler optimization was accidentally set to /Ox for debug build too.
Changed this to be /Od in Debug and /Ox in Release mode.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57579 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: prepare to make CUDA 5.0 the official version we use

* Add CUDA compiler version detection to cmake/scons/runtime
* Remove noinline in kernel_shader.h and reenable --use_fast_math if CUDA 5.x
  is used, these were workarounds for CUDA 4.2 bugs
* Change max number of registers to 32 for sm 2.x (based on performance tests
  from Martijn Berger and confirmed here), and also for NVidia OpenCL.

Overall it seems that with these changes and the latest CUDA 5.0 download, that
performance is as good as or better than the 2.67b release with the scenes and
graphics cards I tested.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57580 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: optimized SSE BVH traversal now also works with SSE2 CPUs, so all the
way back to Pentium 4, using a slightly less efficient instruction.

Also ensure /Ox is used for Visual Studio for RelWithDebInfo builds.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57581 954f8c5b-7b00-dc11-b283-0030488c597c
internal editmesh api: add an extended version of EDBM_verts_mirror_cache_begin which takes arguments to give some more control.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57582 954f8c5b-7b00-dc11-b283-0030488c597c
Remove paranoid null checks for editmesh EDBM_vert_at_index and friends (use asserts instead).
temp set BM_OMP_LIMIT to zero for better testing before release.


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