Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-06 05:16:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-06 05:40:44 +0300
commitb2889c7cf122a5bc6b028470c3c3800637e780ab (patch)
tree41186d942584c1c3a3a604f363566f82b3ddde47
parentaf72fc75559e059a7d8e91f2b203efbb3b01f8c6 (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.
-rw-r--r--source/blender/blenkernel/intern/mball.c3
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);
}
}
}