fix for own error with unwrap selection checking uvedit_have_selection() failed with no UV layer.
also add some safety checks for BM_ELEM_CD_GET_* macros.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53780 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33847] Ctrl+L doesnt works in edge selection mode
own bug caused be changes to selection flushing.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53781 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use BMW_begin insode for loops body.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53782 954f8c5b-7b00-dc11-b283-0030488c597c
fix fox AddonPreferences not getting registered automatically and leak when removing the addon (wasnt freeing ID-props).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53783 954f8c5b-7b00-dc11-b283-0030488c597c
no need to call BLI_countlist on idproperty groups when comparing.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53784 954f8c5b-7b00-dc11-b283-0030488c597c
fix own bug, edge crease and bevel weights lost on undo.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53785 954f8c5b-7b00-dc11-b283-0030488c597c
Fix cycles hair in a dupligroup not showing in the correct location for viewport
rendering.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53786 954f8c5b-7b00-dc11-b283-0030488c597c
Dosvidanya, old compositor!

You served well and now desired retirement, but you'll always live in our hearts.

And for sure -- monument!

       +-------------------------------------------+
      /   ++==+   .  ..   .   ...    .  ..     .  /
     /   //    ++==++  ++  ++     ++==++ ++==++  /
    /   //    //  //  //\\//\\   //  // //  //  /
   /   ++==+ ++==++  //      \\ //==++ ++==++  /
  /  .    ...   ..    .       //  ..  ...     /
 +-------------------------------------------+

Some notes:
- Removed all code which was from inside ifdef WITH_COMPOSITOR_LEGACY
- Removed some functions which were used by old compositor only but
  weren't ported to new color management
- Removed WITH_COMPOSITOR_LEGACY from build systems
- node_composite_util.h was in fatc used by compo nodes specification
  files, so added it back to cmake.

  Could be cleaned up by moving header files to files where they're
  actually needed but would consider this is a separate task.

- Should be no functional changes!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53787 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33863: cycles viewport render crash entering edit mode on an object with
a subsurf modifier.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53788 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33868: cycles sample as lamp for world background not rendering with the
correct intensity on the GPU.

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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53790 954f8c5b-7b00-dc11-b283-0030488c597c
Change some big functions from __device_inline to __device, which
makes CPU kernel compilation much faster when using MSVC.

Sideeffect of this change is that CPU rendering is few percent
faster now. CUDA rendering is the same speed.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53791 954f8c5b-7b00-dc11-b283-0030488c597c
Remove usage WITH_CYCLES_CUDA_BINARIES in code, use check for
precompiled cubins instead,

Logic here is following now:
- If there're precompiled cubins, assume CUDA compute is available,
  otherwise
- If cuda toolkit found, assume CUDA compute is available
- In all other cases CUDA compute is not available

For windows there're still check for only precompiled binaries,
no runtime compilation is allowed.

Ended up with such decision after discussion with Brecht. The thing
is, if we'll support runtime compilation on windows we'll end up
having lots of reports about different aspects of something doesn't
work (you need particular toolkit version, msvc installed, environment
variables set properly and so) and giving feedback on such reports
will waste time.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53792 954f8c5b-7b00-dc11-b283-0030488c597c
Cuda binaries workaround for buildbot shall no longer be needed.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53793 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: enable lamp multiple importance sampling on the GPU, seems to be
working ok with sm_20 and sm_21.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53794 954f8c5b-7b00-dc11-b283-0030488c597c
optimize BM_face_exists(), was doing a lot of redundant checks.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53795 954f8c5b-7b00-dc11-b283-0030488c597c
For non-windows systems, check for CUDA compiler during runtime

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53796 954f8c5b-7b00-dc11-b283-0030488c597c
remove NULL checks for BM_iter_new() element iterators. replace checks with assert().


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53797 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33831] "Alt" key is "Alt Window Deactivated"
Patch from Patrick Zulke (pazul)


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