Cycles / Closures:
* Avoid some unnecessary re-declarations of closure data and simplify *_setup() functions a bit. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56675 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35262: assiging shortcuts from e.g. delete or selection mode menus did not
work anymore. This was due to a bugfix to show missing shortcut keys for e.g. the
mesh > vertices > separate menu. Both should work now.

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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56677 954f8c5b-7b00-dc11-b283-0030488c597c
only use OSKEY as a replacement for CTRL on Apple (was already the case in many areas).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56678 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Fix for [#34631] "Textures bad in game mode" reported by pablo aaa (p9ablo).

Disabling caching if materials have Face Textures enabled.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56679 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Fix for [#34044] "Objects with no material don't have their "face image" always working on bge" reported by Dalai Felinto (dfelinto).

NULL materials are no longer cached.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56680 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35306: cycles normal mapping not working with flat shading.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56682 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35265: on OS X, pressing system shortcuts such as cmd+M or cmd+` would both
insert text in the text editor and do the associated operation like minimizing the
window or switching windows.

The code was always doing both without trying to ensure only one is done. Now we
integrate a bit better with the event handling and pass the event to NSApp, which
then decides to handle the event itself or pass it on to the window, from where
we then send it back to be handled.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56683 954f8c5b-7b00-dc11-b283-0030488c597c
utility functions to reverse and rotate linklists.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56684 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for previous fix, not sure it will cause issues in practice but better be
sure to avoid invalid memory access.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56685 954f8c5b-7b00-dc11-b283-0030488c597c
Fix libmv build with visual studio 2012.

Patch #35158 by Jurgen Herrmann.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56686 954f8c5b-7b00-dc11-b283-0030488c597c
- add generic edge-loop utility functions for bmesh.
- rewrite bridge tool to use the new functions (using edge & vertex arrays was quite cumbersome).


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

Popup menus in nodes, with nodes outside window boundary, were clipped very badly, even
causing it to fill entire window.

Now the clip code nicely translates the menu horizontally to be in view.



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

If you have three scenes, current is A, others are B and C.

B uses C as background, and C uses B as a background.
(which is possible via linked libraries)

If you then try to use B or C as background of A, code went to eternal loop.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56689 954f8c5b-7b00-dc11-b283-0030488c597c
add support for bridging multiple edge loops at once.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56690 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / RNG:
* Avoid call to empty path_rng_end() function when using __SOBOL__. Maybe the compiler optimizes that out already, but adding a check here does not harm.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56691 954f8c5b-7b00-dc11-b283-0030488c597c
* Revert last commit, it will be left out already. 

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