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.
This commit is contained in:
parent
af72fc7555
commit
b2889c7cf1
Notes:
blender-bot
2023-02-14 03:35:24 +01:00
Referenced by issue #61917, Metaball family inherits wrong resolution by deleted metaobject, but new object don`t inherit settings by family
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue