b26865ba99
code cleanup: prefer BM_face/edge/vert_select_set() over BM_elem_select_set() when the type is known (saves switch statement check on the type).
...
Add asserts so the correct types are ensured.
2012-04-20 16:55:47 +00:00
475ecbb0ce
remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the maceros had unused args in both cases).
2012-04-19 13:47:58 +00:00
75b869e428
style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITER
2012-04-19 11:44:12 +00:00
2a54ef0442
there was no way to reset timing for absolute shape keys, add an operator to do so.
2012-04-05 06:10:15 +00:00
d37d17019c
fix for vertex group blend - wasn't functional since the deform verts were being tken from a NULL array,
...
also made some other improvements
- make it work in weight paint vert sel mode (some unused code for this was in the function).
- add factor slider.
- add to weight paint toolbar.
2012-04-03 02:16:27 +00:00
09f29c0b70
style/name cleanup: have EDBM_* functions match our style guide and also match BM_ function naming conventions
2012-03-27 04:46:52 +00:00
ab4a2aaf4a
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
2012-03-24 06:38:07 +00:00
4c3bb77012
style cleanup: spaces aroudn operators for operator definitions.
2012-03-22 07:26:09 +00:00
4f19c1a995
spelling cleanup
2012-03-18 07:38:51 +00:00
a2e00c6230
disable object outline draw when painting (its distracting), also fix for own recent mistake in vgroup_blend(). - had bad check for editmesh.
2012-03-09 22:00:40 +00:00
4f7bdc59d3
style cleanup: spelling.
...
also remove large, duplicate comments from sunsky.h
2012-03-09 00:41:09 +00:00
6029640bca
Many vertex group functions assumed mesh object when lattices could be operated on too.
2012-03-08 01:49:25 +00:00
52db32bb53
fix for 2 crashes from missing NULL checks.
2012-03-08 00:23:28 +00:00
f6ae27daef
style cleanup - comment spelling + translate some dutch.
2012-03-04 04:35:12 +00:00
a2c182e923
style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide).
2012-03-03 16:31:46 +00:00
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