Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-12-11 13:15:12 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-12-11 13:15:12 +0300
commit49b5d45118b76f7ab0383b30a98192ef6410547b (patch)
treeb4b592ee125c0a6148cbeec2613ec11291503b3e
parente4153946ad1e81c697b8d51d92a3e2f088d0af4d (diff)
Fix T59174: Missing particles update
-rw-r--r--source/blender/depsgraph/intern/depsgraph_tag.cc11
1 files changed, 10 insertions, 1 deletions
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;