Fix T66105: Changing force field does not update simulation

This commit is contained in:
Sergey Sharybin 2019-06-28 09:48:12 +02:00
parent 37d5d10849
commit 2110f4a76c
Notes: blender-bot 2023-02-14 06:17:14 +01:00
Referenced by issue #66105, Force field does not update
1 changed files with 7 additions and 0 deletions

View File

@ -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;