diff options
author | Ton Roosendaal <ton@blender.org> | 2005-10-25 17:57:37 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-10-25 17:57:37 +0400 |
commit | 6894526265818ff5188f1fd82616c81ae9015ae5 (patch) | |
tree | f8b35cecd0251f595737c0f0b89ce8607d4b42dd /source/blender/src/editdeform.c | |
parent | d21d25538959611bd090c7d5c3709164290d4b42 (diff) |
Subdivide recode assistance!
- Added subdivide sck upport for vertex groups
- Brought back subdivide-smooth, but it doesn't work as good as before yet,
it used to catch an exception for subdividing the middle vertex of a quad,
with edge-based subdivide it's not that simple. Will check later.
- made "number of cuts" a static variable, so it doesn't jump back to 2
all the time
Coder level notes:
- removed the old subdivide code (yay, over 30k code less!)
- did some minor layout cleanups in the new code (just consistant syntax)
- removed redundant code parts, to enable smooth & vgroup subdiv
- subdivide smooth can do multiple cuts too, but i like to see that only
as option when our smooth formula is good!
Compliment:
I think Johnny really made comprehensible design and nice code here. Was a
joy to work with. :)
Diffstat (limited to 'source/blender/src/editdeform.c')
-rw-r--r-- | source/blender/src/editdeform.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/src/editdeform.c b/source/blender/src/editdeform.c index 3ae10500c72..ec6893bd264 100644 --- a/source/blender/src/editdeform.c +++ b/source/blender/src/editdeform.c @@ -102,12 +102,13 @@ void sel_verts_defgroup (int select) else EM_deselect_flush(); } -MDeformWeight *verify_defweight (MDeformVert *dv, int defgroup) /* Ensures that mv has a deform weight entry for -the specified defweight group */ + the specified defweight group */ +/* Note this function is mirrored in editmesh_tools.c, for use for editvertices */ +MDeformWeight *verify_defweight (MDeformVert *dv, int defgroup) { - int i; MDeformWeight *newdw; + int i; if (!dv || defgroup<0) return NULL; @@ -133,7 +134,8 @@ the specified defweight group */ return dv->dw+(dv->totweight-1); } -void add_defgroup (Object *ob) { +void add_defgroup (Object *ob) +{ add_defgroup_name (ob, "Group"); } |