bmmesh api - use struct rather than int[4] to initialize mesh sizes.

also correct bad assert() in previous commit.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44591 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #30413: dynamic paint crash with texture slots with no texture assigned.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44592 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh - changes to mempool allocations
* double default edge allocation size (double the number of verts/faces).
* CustomData_bmesh_init_pool was using allocsize & chunksize as the same variable. Now use type specific chunk size.
* bmesh copy and editmode conversion now allocate the BMesh mempool size needed for the entire vert/edge/loop/face arrays since its known already.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44593 954f8c5b-7b00-dc11-b283-0030488c597c
Code Cleanup: update to mempool, use flag rather then bool args.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44595 954f8c5b-7b00-dc11-b283-0030488c597c
minor edits to last commit - use fixed chunksize, rather than the number of verts/edges/faces in bm_mempool_init().


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44596 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#30419] Median wrongly setting lattice vertex weights.

In fact, the same bug affected curves' weights too. Now using the same method as for setting mesh edges' crease and bevel weights. Also factorized/simplified that part of code by defining a new utility func computing the scale factor.

Also greatly simplified UI code in same v3d_editvertex_buts() function, was really over-complicated (this fixes btw a few minor UI bugs in the transform editmode panel, like missing tips, etc.).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44599 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh minor changes
* dont check selection and hiddent state (select + hide isnt allowed and api ensures this)
* MESH_OT_noise had incorrect check for texture (checked if slot [0] was filled but then used active texture)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44600 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup:
replace casts: '((Mesh *)ob->data)->edit_btmesh' with 'BMEdit_FromObject(ob)'

also minor style edits.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44601 954f8c5b-7b00-dc11-b283-0030488c597c
Code Cleanup - naming consistancy for bmesh struct types


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44602 954f8c5b-7b00-dc11-b283-0030488c597c
== Python API docs ==

- Works in macOSX now (hackish)
  (TODO: not check for OSX explicitly but handle exception if it fails)

- We can now generate rst files outside out of the source (was annoying)
  - Moved some vars at module level
  - Managing the command line args with argparse.
    Example usage:
    ./cmake/bin/blender -b -P ./blender/doc/python_api/sphinx_doc_gen.py -- -o ./python_api



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44604 954f8c5b-7b00-dc11-b283-0030488c597c
mesh.update() now has option to calculate tessellation faces.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44605 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #30421: Panorama option in camera properties always disabled

Issue was caused by comparing camera's type with PERSPECTIVE instead of PERSP which is
declared in RNA files.

Patch by Susanne H., thanks!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44606 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup
- spelling - turns out we had tessellation spelt wrong all over.
- use \directive for doxy (not @directive)
- remove BLI_sparsemap.h - was from bmesh merge IIRC but entire file commented and not used.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44607 954f8c5b-7b00-dc11-b283-0030488c597c
* update py ui for rna var rename in last commit
* remove source/gameengine/PyDoc, EPY docs these are no longer used


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44608 954f8c5b-7b00-dc11-b283-0030488c597c
remove prints committed by accident.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44609 954f8c5b-7b00-dc11-b283-0030488c597c
fix bug [#30426] crash in bmesh python api.

if blender freed the BMesh before python was finished (on exit editmode for eg), python would attempt to access the bmesh to clear python pointers in it.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44610 954f8c5b-7b00-dc11-b283-0030488c597c
"Fix" [#30431] UI string spelling & similar fixes.

All suggested changes looked good to me, thx to Michael Färber for this list of changes!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@44611 954f8c5b-7b00-dc11-b283-0030488c597c
fix for error report in property registration, it wasnt printing the error.


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