diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-06-28 10:48:12 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-06-28 10:48:44 +0300 |
commit | 2110f4a76c0c473cec984ca9048f88e7f87f810b (patch) | |
tree | 03f7654a792568895fd16888e75563a24a834d57 /source | |
parent | 37d5d10849978107b4b513e358b14b48525e238e (diff) |
Fix T66105: Changing force field does not update simulation
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc index 60233ecd304..c7f6116e81d 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc @@ -898,6 +898,13 @@ void DepsgraphRelationBuilder::build_object_pointcache(Object *object) OperationKey transform_key( &object->id, NodeType::TRANSFORM, OperationCode::TRANSFORM_SIMULATION_INIT); add_relation(point_cache_key, transform_key, "Point Cache -> Rigid Body"); + /* Manual changes to effectors need to invalidate simulation. */ + OperationKey rigidbody_rebuild_key( + &scene_->id, NodeType::TRANSFORM, OperationCode::RIGIDBODY_REBUILD); + add_relation(rigidbody_rebuild_key, + point_cache_key, + "Rigid Body Rebuild -> Point Cache Reset", + RELATION_FLAG_FLUSH_USER_EDIT_ONLY); } else { flag = FLAG_GEOMETRY; |