diff options
author | Hans Goudey <h.goudey@me.com> | 2022-08-17 19:03:26 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-08-17 19:03:26 +0300 |
commit | a73cc8164679e2ee7870a42388a792f14bd7da61 (patch) | |
tree | e3c9c86bbbac9f71c8534ad6f26de8641f206c39 /source/blender/blenkernel/intern/mball.cc | |
parent | 6718afdc8a324f92741ce3b6d71656b6deca9322 (diff) |
Cleanup: Remove unused function
Also remove two DispList references I missed in the previous commit.
Diffstat (limited to 'source/blender/blenkernel/intern/mball.cc')
-rw-r--r-- | source/blender/blenkernel/intern/mball.cc | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/source/blender/blenkernel/intern/mball.cc b/source/blender/blenkernel/intern/mball.cc index 3a918690b42..1a2b4b22080 100644 --- a/source/blender/blenkernel/intern/mball.cc +++ b/source/blender/blenkernel/intern/mball.cc @@ -279,41 +279,6 @@ BoundBox *BKE_mball_boundbox_get(Object *ob) return ob->runtime.bb; } -float *BKE_mball_make_orco(Object *ob, ListBase *dispbase) -{ - BoundBox *bb; - DispList *dl; - float *data, *orco, *orcodata; - float loc[3], size[3]; - int a; - - /* restore size and loc */ - bb = ob->runtime.bb; - loc[0] = (bb->vec[0][0] + bb->vec[4][0]) / 2.0f; - size[0] = bb->vec[4][0] - loc[0]; - loc[1] = (bb->vec[0][1] + bb->vec[2][1]) / 2.0f; - size[1] = bb->vec[2][1] - loc[1]; - loc[2] = (bb->vec[0][2] + bb->vec[1][2]) / 2.0f; - size[2] = bb->vec[1][2] - loc[2]; - - dl = static_cast<DispList *>(dispbase->first); - orcodata = static_cast<float *>(MEM_mallocN(sizeof(float[3]) * dl->nr, __func__)); - - data = dl->verts; - orco = orcodata; - a = dl->nr; - while (a--) { - orco[0] = (data[0] - loc[0]) / size[0]; - orco[1] = (data[1] - loc[1]) / size[1]; - orco[2] = (data[2] - loc[2]) / size[2]; - - data += 3; - orco += 3; - } - - return orcodata; -} - bool BKE_mball_is_basis(const Object *ob) { /* Meta-Ball Basis Notes from Blender-2.5x |