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-03-28 18:32:51 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-03-29 13:41:11 +0300
commit44cd24a9cee9ffb14b5d26a622f2158f55e008ba (patch)
tree4ff9740ad9fe6a99797c9b0a0d08130efaf13ed5 /source/blender/depsgraph/intern/depsgraph_tag.cc
parent526719bccb8bc8a592ad951cb3a137ce56fa4834 (diff)
Particles: Remove dedicated recalc field from ParticleSettings
Use more generic id->recalc flag. Also sanitize flag flush from settings to particle system. Need to do such flush before triggering point cache reset, since point cache reset will do some logic based on what flags are set. This will solve crash caused by threaded update which will set some bitflags while point cache reset is in progress.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_tag.cc')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_tag.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc
index 1f643dc9615..8f2f6e258fb 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -199,13 +199,7 @@ void depsgraph_tag_to_component_opcode(const ID *id,
* component. Will be nice to get this unified with object,
* but we can survive for now with single exception here.
* Particles needs reconsideration anyway,
- * - We do direct injection of particle settings recalc flag
- * here. This is what we need to do for until particles
- * are switched away from own recalc flag and are using
- * ID->recalc flags instead.
*/
- ParticleSettings *particle_settings = (ParticleSettings *)id;
- particle_settings->recalc |= (tag & DEG_TAG_PSYS_ALL);
*component_type = DEG_NODE_TYPE_PARAMETERS;
}
else {