Cycles: different fix for perlin noise generating nan values, now check for
the result to be finite afterwards which is a bit faster and works for OSL
too without needing to slow down OSL itself.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53689 954f8c5b-7b00-dc11-b283-0030488c597c
don't store bevel weights or edge crease customdata layers in editmode unless they are needed.

configurable in 'Geometry Data' panel, will be added when running crease edges transform for example.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53690 954f8c5b-7b00-dc11-b283-0030488c597c
fix for editmesh calculating normals twice when using the number-buttons.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53691 954f8c5b-7b00-dc11-b283-0030488c597c
transforming verts was getting the bevel weight for each vertex even if bevel-weight wasnt being transformed.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53692 954f8c5b-7b00-dc11-b283-0030488c597c
don't call BKE_mesh_tessface_ensure() from DM_to_mesh(), caller must do this instead.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53693 954f8c5b-7b00-dc11-b283-0030488c597c
Added new scons target: cudakernels

It's intended to perform compilation of CUDA kernels only,
without doing anything with other sources/resources and
main purpose of this target is to be able to compile cuda
kernels in completely different environment than the rest
of blender was compiled.

This is needed for linux build environment, where sm_13
compilation fails dramatically in 32bit chroot but could
be compiled in 64bit environment.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53694 954f8c5b-7b00-dc11-b283-0030488c597c
Switch linux buildbot to compile all cuda kernels in 64bit environment

Solves memory limit issues when building sm_13 for 32bit platform.

Some further refinement of patch could be needed.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53695 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh todo: uv stretch area draw mode wasn't calculating ngon area - added area_poly_v2().


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53696 954f8c5b-7b00-dc11-b283-0030488c597c
Further tweaks to buildbot

- BF_BITNESS should be passed as a command line argument
- Made it so CUDA binaries and OSL compiled scripts would
  be installed regardless WITH_BF_PYTHON (which seems to
  be quite obvious)
- Disable overwrite install, so CUDA kernels installed by
  it's build target will be preserved when building blender
  itself.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53697 954f8c5b-7b00-dc11-b283-0030488c597c
Stripping and packaging shall happen inside of chroot as well

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53698 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33816: property not found: World.use_textures

Issue was caused bu svn rev53355 and now logic seems to mimic
behavior before that change.

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

Modal operators with hardcoded (in C) event handling now don't get
double clicks anymore. For modal keymaps things work OK.

This fixes number input typing for CTRL+B bevel, for example.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53700 954f8c5b-7b00-dc11-b283-0030488c597c
editmesh texface drawing, reuse customdata offset rather then looking up each UV and vertex color, gives overall ~9.5% drawing speedup in my tests.
was also doing NULL checks on UV's which are never NULL in this case.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53701 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for bpy.props getter/setter callbacks. These were missing a valid GIL state when being called outside the UI context.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53702 954f8c5b-7b00-dc11-b283-0030488c597c
Fix too bright result in background multiple importance after recent changes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53703 954f8c5b-7b00-dc11-b283-0030488c597c
adding vertex color layer in mesh editmode would overwrite UV's, strange nobody reported this since its been there since 2.63.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53704 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own mistake in recent changes to scanfill, bmo_triangle_fill_exec() (alt+f), was missing BLI_SCANFILL_CALC_HOLES argument.
reported as [#33819]


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53705 954f8c5b-7b00-dc11-b283-0030488c597c
Another fix for bpy.props getters/setters: PyC_AsArray does a refcount decrement internally on errors, need to skip Py_DECREF in that case to avoid negative refcounts.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53706 954f8c5b-7b00-dc11-b283-0030488c597c
simple speedup for view3d numeric panel - dont loop on verts or edges if none are selected.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53707 954f8c5b-7b00-dc11-b283-0030488c597c
pyapi internal api code: check for == -1 rather then < 0, for known error returns.


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