style cleanup


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50486 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own error in r50482.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50488 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use single define for undo string size, was 64 mostly, but 512 in the UI.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50489 954f8c5b-7b00-dc11-b283-0030488c597c
when pressing `play` report when the first frame can't be found.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50490 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use more specific args


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50491 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use BMEdit_FromObject() rather then me->edit_btmesh in more places.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50492 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#32518] Vertex slide crash sometimes.

Undo would leave BMEditMesh->me pointer NULL, this would likely crash EDBM_verts_mirror_cache_begin() too.

Rather then restore 'me', remove the pointer altogether and use BMEditMesh->ob->data to save us having to keep track of 2 pointers.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50493 954f8c5b-7b00-dc11-b283-0030488c597c
missing include in own recent commit


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50494 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup:
use an enum typedef for button types. it was quite annoying debugging UI code since the defines are bit-shifted. GDB would show but->type as 13824 and blender define was (27 << 9).

Now but->type shows as a humanly readable names.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50495 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#32384] Submenu hotkeys not working at all since 2.6x


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50496 954f8c5b-7b00-dc11-b283-0030488c597c
Cleanup for OSL linking in cmake: Move cmake OSL library search and path definition from the cycles macro file to the top-level CMakeLists.txt. This makes the OSL_LIBRARIES and other variables accessible throughout Blender cmake scripts and especially in the creator module for linking libraries.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50497 954f8c5b-7b00-dc11-b283-0030488c597c
make alphanumeric key shortcuts work for submenu's so you can chain keys together to select items in a menu.

eg: 'Ctrl+V, E, S'
for - Vertex, Separate, Selection


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50498 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use typedef'd enum for block bounds types.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50499 954f8c5b-7b00-dc11-b283-0030488c597c
OSL cmake cleanup:
* Removed unused lib and include directories (also one bad 'src' include that wouldn't work anyway)
* Copied cmake library finding to APPLE and WIN32 sections. These may need some adjustment for their respective OS.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50500 954f8c5b-7b00-dc11-b283-0030488c597c
change to auto-opening menus so the first menu item in popup menu wont auto open.

This way we can do predictable key-shortcut-chaining. Eg.

Shift+A, M, O --- adds a metaball cone.

In editmode
Ctrl+V, X, A --- Assign new vertex group.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50501 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32530: animation playback did not respect preview frame range if the current
frame was before the start frame.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50504 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32529: after tomato merge, cycles multi GPU render not using all GPUs with
F12 rendering.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50505 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: string c++ lib, defines for default string sizes and use m_ convention for member naming.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50512 954f8c5b-7b00-dc11-b283-0030488c597c
fix for a bug running a script, then opening a new file.

BPY_text_free_code() could run outside the python interpreter which abort()'s blender.


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