diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-06 05:16:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-06 05:40:44 +0300 |
commit | b2889c7cf122a5bc6b028470c3c3800637e780ab (patch) | |
tree | 41186d942584c1c3a3a604f363566f82b3ddde47 /source/blender/blenkernel/intern/mball.c | |
parent | af72fc75559e059a7d8e91f2b203efbb3b01f8c6 (diff) |
Fix T61917: Metaball family inherits wrong resolution by deleted object
Synchronizing values between object data is error prone (not updated on
creation or renaming), add an update to have them working as they did
in 2.79.
Diffstat (limited to 'source/blender/blenkernel/intern/mball.c')
-rw-r--r-- | source/blender/blenkernel/intern/mball.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/mball.c b/source/blender/blenkernel/intern/mball.c index c09df3aeccb..ae5cbcc4f49 100644 --- a/source/blender/blenkernel/intern/mball.c +++ b/source/blender/blenkernel/intern/mball.c @@ -56,6 +56,8 @@ #include "BKE_object.h" #include "BKE_material.h" +#include "DEG_depsgraph.h" + /* Functions */ /** Free (or release) any data used by this mball (does not free the mball itself). */ @@ -388,6 +390,7 @@ void BKE_mball_properties_copy(Scene *scene, Object *active_object) mb->rendersize = active_mball->rendersize; mb->thresh = active_mball->thresh; mb->flag = active_mball->flag; + DEG_id_tag_update(&mb->id, 0); } } } |