Fix T101851: Duplicating a particle system crashes

This commit is contained in:
Sergey Sharybin
2022-10-17 11:02:13 +02:00
parent 3e35beae61
commit 89effac57e

View File

@@ -1204,9 +1204,7 @@ static bool copy_particle_systems_to_object(const bContext *C,
#undef PSYS_FROM_FIRST
#undef PSYS_FROM_NEXT
if (duplicate_settings) {
DEG_relations_tag_update(bmain);
}
DEG_relations_tag_update(bmain);
DEG_id_tag_update(&ob_to->id, ID_RECALC_GEOMETRY);
WM_main_add_notifier(NC_OBJECT | ND_PARTICLE | NA_EDITED, ob_to);
return true;