diff options
Diffstat (limited to 'source/blender/blenkernel/intern/mball.c')
-rw-r--r-- | source/blender/blenkernel/intern/mball.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/source/blender/blenkernel/intern/mball.c b/source/blender/blenkernel/intern/mball.c index d71c100ed87..65ec91c57cf 100644 --- a/source/blender/blenkernel/intern/mball.c +++ b/source/blender/blenkernel/intern/mball.c @@ -202,6 +202,8 @@ IDTypeInfo IDType_ID_MB = { .blend_read_data = metaball_blend_read_data, .blend_read_lib = metaball_blend_read_lib, .blend_read_expand = metaball_blend_read_expand, + + .blend_read_undo_preserve = NULL, }; /* Functions */ @@ -210,20 +212,11 @@ MetaBall *BKE_mball_add(Main *bmain, const char *name) { MetaBall *mb; - mb = BKE_libblock_alloc(bmain, ID_MB, name, 0); - - metaball_init_data(&mb->id); + mb = BKE_id_new(bmain, ID_MB, name); return mb; } -MetaBall *BKE_mball_copy(Main *bmain, const MetaBall *mb) -{ - MetaBall *mb_copy; - BKE_id_copy(bmain, &mb->id, (ID **)&mb_copy); - return mb_copy; -} - /* most simple meta-element adding function * don't do context manipulation here (rna uses) */ MetaElem *BKE_mball_element_add(MetaBall *mb, const int type) @@ -387,7 +380,7 @@ float *BKE_mball_make_orco(Object *ob, ListBase *dispbase) * * This is a can of worms. * - * This really needs a rewrite/refactor its totally broken in anything other then basic cases + * This really needs a rewrite/refactor its totally broken in anything other than basic cases * Multiple Scenes + Set Scenes & mixing meta-ball basis _should_ work but fails to update the * depsgraph on rename and linking into scenes or removal of basis meta-ball. * So take care when changing this code. |