[Bf-blender-cvs] [49b5d45118b] blender2.8: Fix T59174: Missing particles update

Sergey Sharybin noreply at git.blender.org
Tue Dec 11 11:15:28 CET 2018


Commit: 49b5d45118b76f7ab0383b30a98192ef6410547b
Author: Sergey Sharybin
Date:   Tue Dec 11 11:15:12 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB49b5d45118b76f7ab0383b30a98192ef6410547b

Fix T59174: Missing particles update

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

M	source/blender/depsgraph/intern/depsgraph_tag.cc

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

diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc
index a1083cbfe0a..26a12f42bfc 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -142,6 +142,14 @@ void depsgraph_base_flags_tag_to_component_opcode(
 	}
 }
 
+eDepsOperation_Code psysTagToOperationCode(IDRecalcFlag tag)
+{
+	if (tag == ID_RECALC_PSYS_RESET) {
+		return DEG_OPCODE_PARTICLE_SETTINGS_RESET;
+	}
+	return DEG_OPCODE_OPERATION;
+}
+
 void depsgraph_tag_to_component_opcode(const ID *id,
                                        IDRecalcFlag tag,
                                        eDepsNode_Type *component_type,
@@ -177,7 +185,8 @@ void depsgraph_tag_to_component_opcode(const ID *id,
 				 *   but we can survive for now with single exception here.
 				 *   Particles needs reconsideration anyway,
 				 */
-				*component_type = DEG_NODE_TYPE_PARTICLE_SYSTEM;
+				*component_type = DEG_NODE_TYPE_PARTICLE_SETTINGS;
+				*operation_code = psysTagToOperationCode(tag);
 			}
 			else {
 				*component_type = DEG_NODE_TYPE_PARTICLE_SYSTEM;



More information about the Bf-blender-cvs mailing list