SVN maintenance.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52904 954f8c5b-7b00-dc11-b283-0030488c597c
replace BLI_array_declare with BLI_array_staticdeclare() and BLI_array_alloca() for smaller arrays.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52905 954f8c5b-7b00-dc11-b283-0030488c597c
assert in debug builds if MEM_ alloc's are called in openmp threads.
note: the caller can do locking to prevent errors - but this isn't being done in blender yet, so this prevents accidental allocs in openmp for now.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52906 954f8c5b-7b00-dc11-b283-0030488c597c
improvement to previous commit.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52907 954f8c5b-7b00-dc11-b283-0030488c597c
use openmp to thread some common bmesh operations
- BM_mesh_elem_toolflags_ensure / bmo_flag_layer_alloc / bmo_flag_layer_free / bmo_flag_layer_clear
- BM_mesh_select_flush
- EDBM_index_arrays_init

notes:
- mostly use openmp `sections` to split operations on vert/edge/face since this is a fairly minor change.
- split tool flag pool in 3, this means we can allocate exact sizes needed and iterate on them in threads without alloc'ing.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52908 954f8c5b-7b00-dc11-b283-0030488c597c
use htype flags as arguments to EDBM_index_arrays_init(), no functional changes.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52909 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33485: cycles OSL now autodetects the presence of emission and transparent
closures to enable multiple importance sampling and transparent shadows.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52910 954f8c5b-7b00-dc11-b283-0030488c597c
make EDBM_index_arrays's stay in memory, blender was allocating an array and filling it for verts/edges/faces on every redraw.

this may introduce bugs which I didn't catch, but they are very easy to identify in a debug build which has asserts to ensure the arrays are valid before use.

in my own test drawing ~98,304 quads - this gave an overall ~16% drawing speedup.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52911 954f8c5b-7b00-dc11-b283-0030488c597c
add destructive argument to bmesh.update_edit_mesh()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52912 954f8c5b-7b00-dc11-b283-0030488c597c
add threshold for bmesh & openmp so its not used with low poly meshes, BM_OMP_LIMIT may need tweaking.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52913 954f8c5b-7b00-dc11-b283-0030488c597c
fix for EDBM_index_arrays_ensure not working as intended.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52914 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33486: cycles CPU image textures were offset wrong by half a pixel compared
to OpenGL/CUDA/OSL rendering.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52915 954f8c5b-7b00-dc11-b283-0030488c597c
revert recent code cleanup which introduced const parameters

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52916 954f8c5b-7b00-dc11-b283-0030488c597c
Use own list of actions for Vertex Group Lock operator instead of reusing Select All actions.

Previous actions and descriptions were confusing, e. g. UnLock All used the description of Deselect All.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52917 954f8c5b-7b00-dc11-b283-0030488c597c
Sequencer old todo: inserting keyframes with preview opened didn't work

Solved in more like a workaround way by not calling BKE_scene_update_for_newframe
if scene's frame didn't change.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52918 954f8c5b-7b00-dc11-b283-0030488c597c
Bug fix [#33492] Right click on 'confirm reload' crashes

Context check could result in NULL - added provision for it and made
sure the check is local only (for 1 new option)



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52919 954f8c5b-7b00-dc11-b283-0030488c597c
Revert recent workaround for sequencer, it'll only work in cases
scene strip is added at frame 1, which is very limited usecase.

Proper solution is not possible yet..

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52920 954f8c5b-7b00-dc11-b283-0030488c597c
use header only tags for edge split (to prepare to move this into tools/)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52921 954f8c5b-7b00-dc11-b283-0030488c597c
Sequencer: add textured solid option for opengl preview

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52922 954f8c5b-7b00-dc11-b283-0030488c597c
Toolbar region for the node editor. This region is, for now, empty and hidden by default. Later on we might add standard panels here, but at least it will give addons a place to register tool shelf panels.

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