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/toolbox.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/toolbox.c')
-rw-r--r-- | source/blender/src/toolbox.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c index 10877d21fd6..7b4484e211b 100644 --- a/source/blender/src/toolbox.c +++ b/source/blender/src/toolbox.c @@ -1181,8 +1181,7 @@ short sbutton(char *var, float min, float max, char *str) return 0; } -short fbutton(float *var, float min, float max, float a1, float a2, -char *str) +short fbutton(float *var, float min, float max, float a1, float a2, char *str) { uiBlock *block; ListBase listb={0, 0}; |