diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-12 15:50:43 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-12 15:50:43 +0400 |
commit | 405c9d9a95d2298813fbc44c2a119c195931cebe (patch) | |
tree | 1be0da28e43553bf82a332a207ccff5e4acc5f0a /source/blender/editors/object | |
parent | 7db13b989a2ca49252eeaffeb1cfc9fe61bb03e5 (diff) |
code cleanup: remove unused KeyBlock.adrcode
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_shapekey.c | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/source/blender/editors/object/object_shapekey.c b/source/blender/editors/object/object_shapekey.c index ba613db1740..79b1ca13c9e 100644 --- a/source/blender/editors/object/object_shapekey.c +++ b/source/blender/editors/object/object_shapekey.c @@ -130,28 +130,10 @@ static int ED_object_shape_key_remove(bContext *C, Object *ob) if (kb->data) MEM_freeN(kb->data); MEM_freeN(kb); - - for (kb= key->block.first; kb; kb= kb->next) - if (kb->adrcode>=ob->shapenr) - kb->adrcode--; - -#if 0 // XXX old animation system - if (key->ipo) { - - for (icu= key->ipo->curve.first; icu; icu= icu->next) { - if (icu->adrcode==ob->shapenr-1) { - BLI_remlink(&key->ipo->curve, icu); - free_ipo_curve(icu); - break; - } - } - for (icu= key->ipo->curve.first; icu; icu= icu->next) - if (icu->adrcode>=ob->shapenr) - icu->adrcode--; + + if (ob->shapenr > 1) { + ob->shapenr--; } -#endif // XXX old animation system - - if (ob->shapenr>1) ob->shapenr--; } if (key->totkey==0) { |