[Bf-blender-cvs] [caed4849d09] master: Fix T83640: No immediate updates when changing the settings of a just- duplicated particle system

Philipp Oeser noreply at git.blender.org
Thu Dec 10 22:51:26 CET 2020


Commit: caed4849d0903c09c63ef5b80e506aa4bdfcb994
Author: Philipp Oeser
Date:   Thu Dec 10 22:39:28 2020 +0100
Branches: master
https://developer.blender.org/rBcaed4849d0903c09c63ef5b80e506aa4bdfcb994

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

===================================================================

M	source/blender/editors/physics/particle_object.c

===================================================================

diff --git a/source/blender/editors/physics/particle_object.c b/source/blender/editors/physics/particle_object.c
index 017cd63d9d5..f5c3fc17552 100644
--- a/source/blender/editors/physics/particle_object.c
+++ b/source/blender/editors/physics/particle_object.c
@@ -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;



More information about the Bf-blender-cvs mailing list