622ac0dd16
code cleanup:
...
replace casts: '((Mesh *)ob->data)->edit_btmesh' with 'BMEdit_FromObject(ob)'
also minor style edits.
2012-03-02 12:09:49 +00:00
ea13ec1699
Spelling Cleanup
2012-03-01 12:20:18 +00:00
6d3cdbe0e5
Done BMESH_TODO in object/object_vgroup.c (make getSurroundingVerts() use polys/loops instead of tessfaces).
...
Also done a few optimizations of related code (OBJECT_OT_vertex_group_fix operator).
2012-02-20 22:16:20 +00:00
a368e6771a
- remove some unused editmesh functions.
...
- copy & rename EditMesh stricts for use with scanfill (remove unused members)
2012-02-19 22:17:30 +00:00
bc6bbcccc9
went over all uses of mesh->mface and added BMESH_TODO comments for
...
areas that need to be updated.
2012-02-15 14:39:18 +00:00
b6dcdb065d
code refactor, function renaming for bmesh.
...
These changes are to make the bmesh api more consistent and easier to learn, grouping similar functions which is convenient for autocomplete.
This uses similar convention to RNA.
* use face/loop/edge/vert as a prefix for functions.
* use 'elem' as a prefix too for functions that can take any type with a BMHeader.
* changed from camel case to underscore separated (like RNA).
2012-02-12 10:51:45 +00:00
8b43813b69
rename BM_ flags for BMHeader->hflag to BM_ELEM_ to be more clear that these flags apply to bmesh elements.
2012-02-12 06:24:12 +00:00
d7b8e7e9bc
Code Cleanup: use less confusing names for selection flushing.
2012-02-10 03:03:42 +00:00
7f797d9c83
fix [ #30103 ] Select vertex groups works only in vertex select mode
...
add selection flushing matching whats in trunk.
2012-02-08 14:29:14 +00:00
c7e8af13d4
remove cellalloc, from my tests jemalloc beats cellalloc, so we better just use a better malloc replacement.
...
See Details:
http://wiki.blender.org/index.php/User:Ideasman42/BMeshBranchReview#Update_43694
2012-01-25 20:18:12 +00:00
4966982a5a
svn merge ^/trunk/blender -r43564:43609
2012-01-22 18:04:35 +00:00
cd4123e1db
use inline BLI_math functions for dot product and length calculation.
2012-01-22 17:20:37 +00:00
b308e61312
svn merge ^/trunk/blender -r43220:43278 --accept postpone
2012-01-11 14:14:04 +00:00
0e4f4acc2f
comment unused vars
2012-01-09 22:18:04 +00:00
46f2233a93
svn merge ^/trunk/blender -r43085:43092
2012-01-03 07:33:11 +00:00
4e98dbe528
error in recent commit - disallow selecting hidden verts.
2012-01-03 02:45:03 +00:00
c0eec8f379
svn merge ^/trunk/blender -r43062:43085
2012-01-03 02:16:52 +00:00
1e18da32fb
replace:
...
CTX_data_pointer_get_type(C, "object", &RNA_Object).data
with api call:
ED_object_context(C)
... since getting the context object is such a common operation.
2012-01-02 17:15:24 +00:00
aa43cab820
weight paint buttons now work in weight paint vertex select mode
2012-01-02 16:59:46 +00:00
2457d4f5ab
svn merge ^/trunk/blender -r42680:42722
2011-12-19 10:40:48 +00:00
74a1123059
Quite some compiler warnings...
2011-12-17 16:22:08 +00:00
5c6ee6b523
svn merge ^/trunk/blender -r42670:42680
2011-12-17 02:41:53 +00:00
994f4bb3f7
Code cleanup: fix a few warnings (>= 0 and == -1 tests on unsigned types).
2011-12-17 01:13:02 +00:00
862dc635ed
svn merge ^/trunk/blender -r42617:42655
2011-12-15 23:59:02 +00:00
27a56719a8
minor vertex group edits
...
* when freeing a deform weight, use one less memcpy call.
* vgroup_delete_object_mode(), was looping on the deform verts twice when it didn't need to.
2011-12-14 23:53:46 +00:00
3d5330f789
vertex group changes,
...
use more api functions more (some vertex group editing functions were copied about), also make some functions int oapi calls.
- remove defgroup_find_index(), use BLI_findlink instead since they both work the same way.
- move static function getNearestPointOnPlane() to BLI_math api function closest_to_plane_v3()
- ED_vgroup_give_parray() added option to return an array where unselected verts are NULL (simplifies code & works for lattice when it didn't before).
- more consistant error checking of ob->actdef.
2011-12-14 21:08:08 +00:00
65f3b93f14
svn merge ^/trunk/blender -r42521:42550
2011-12-10 05:38:00 +00:00
f025b7b511
went over all uses of MDeformWeight.def_nr and made sure the value is clamped when used as an array index.
2011-12-09 08:20:27 +00:00
980e68175b
svn merge ^/trunk/blender -r42495:42516
2011-12-08 17:32:37 +00:00
36e7a22fcc
Disable redo for some vertex group operators to prevent confusing
...
situation when changing properties in redo panel messes up things.
This should help in cases described in #29527 : Vgroup assign, remove and undo
2011-12-08 11:02:29 +00:00
b245dfbc06
svn merge ^/trunk/blender -r42466:42495
2011-12-07 18:29:21 +00:00
2b49d05338
fix for NULL pointer free and add in some checks, while looking into bug [ #29521 ],
...
add asserts so we know if an invalid active index is ever set.
2011-12-07 09:13:15 +00:00
f07df7287e
manual sync with trunk - pulling in changes where the issues are not bmesh spesific
...
- some merges added lines in multiple times
- removed some NULL checks that were only in bmesh
- enable cycles by default (was disabled because it used not to work)
- make formatting match
2011-12-04 23:13:28 +00:00
eb233d9332
syncing some minor formatting edits from bmesh branch.
2011-12-04 23:04:43 +00:00
9e5b28cd42
svn merge ^/trunk/blender -r42261:42290
2011-11-30 09:31:11 +00:00
b202bf0564
fix [ #29450 ] Mirror Vertex Groups issue
2011-11-30 07:11:29 +00:00
565e2b4d73
use faster method of getting vert/edge/face indices which uses BLI_mempool_findelem to skip over chunks rather than going over every element
2011-11-27 02:05:46 +00:00
74c6c91ba6
svn merge ^/trunk/blender -r42080:42095
2011-11-23 17:14:27 +00:00
85497e35d0
Added method clear to most of collections which supports new/remove.
...
This method not added to animation-specific structures yet/
2011-11-23 16:12:11 +00:00
da849bbfc0
prepare for flagging the bmesh has having invalid index values, so we can skip looping over all elements if its already valid.
...
- went over every BM_SetIndex call and added comments about its use, if its setting dirty values or correct ones.
- replace loops over all elements _just_ to set index values, with a new function, BM_ElemIndex_Ensure(...), this will eventually only initialize values when they are dirty.
2011-11-16 12:38:40 +00:00
e6e265b2b5
svn merge -r41779:41847 ^/trunk/blender
2011-11-15 02:58:06 +00:00
e59ab6486f
svn merge -r41751:41779 ^/trunk/blender
2011-11-15 02:05:32 +00:00
49ccf975f2
minor cleanup
...
- use NULL rather then 0 for pointers
- use static functions where possible
- add own includes to ensure func's and their declarations don't get out of sync.
2011-11-14 16:05:44 +00:00
094c9799f9
quiet -Wdouble-promotion warnings
2011-11-11 12:00:08 +00:00
9aa901cccc
svn merge -r41422:41431 ^/trunk/blender
2011-11-01 09:05:38 +00:00
2ad80bf3bb
vertex group mirror
...
- now works in vertex select + weight paint mode.
- added option not to mirror all vertex groups.
2011-11-01 08:11:55 +00:00
bcdcbb65c1
macro to check if an object type supports vgroups
2011-11-01 06:45:36 +00:00
b6e445a61f
BMesh todo - mirror vertex groups back.
2011-11-01 05:43:35 +00:00
75e570b2b7
svn merge -r41287:41310 ^/trunk/blender note, mirror modifier had slow, per vertex name flipping, replaced with flip_map from trunk
2011-10-27 09:42:03 +00:00
99075b35ed
fix [ #29044 ] applying mirror modifier causes crash; something with vertex groups?
2011-10-27 07:54:32 +00:00