Fix T83640: No immediate updates when changing the settings of a just-

duplicated particle system

When particle settings are duplicated along with the particle system,
this means a change in relations, was missing
'DEG_relations_tag_update'.

Maniphest Tasks: T83640

Differential Revision: https://developer.blender.org/D9823
This commit is contained in:
Philipp Oeser 2020-12-10 22:39:28 +01:00
parent a7fcca1062
commit caed4849d0
Notes: blender-bot 2023-02-13 23:17:13 +01:00
Referenced by issue #83773, Can't access geometry node group of an object
Referenced by issue #83640, No immediate updates when changing the settings of a just-duplicated particle system
Referenced by issue #83317, Hair particles duplication with duplicate settings enabled copies all the particles instead of one selected
1 changed files with 3 additions and 0 deletions

View File

@ -1203,6 +1203,9 @@ 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_id_tag_update(&ob_to->id, ID_RECALC_GEOMETRY);
WM_main_add_notifier(NC_OBJECT | ND_PARTICLE | NA_EDITED, ob_to);
return true;