Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_physics.cc
| Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (EffectorRelation *, relation, relations) { | ||||
| } | } | ||||
| /* Relation to forcefield object, optionally including geometry. | /* Relation to forcefield object, optionally including geometry. | ||||
| * Use special point cache relations for automatic cache clearing. */ | * Use special point cache relations for automatic cache clearing. */ | ||||
| DEG_add_object_pointcache_relation( | DEG_add_object_pointcache_relation( | ||||
| handle, relation->ob, DEG_OB_COMP_TRANSFORM, name); | handle, relation->ob, DEG_OB_COMP_TRANSFORM, name); | ||||
| if (relation->psys || | if (relation->psys || | ||||
| ELEM(relation->pd->shape, PFIELD_SHAPE_SURFACE, PFIELD_SHAPE_POINTS)) | ELEM(relation->pd->shape, PFIELD_SHAPE_SURFACE, PFIELD_SHAPE_POINTS) || | ||||
| relation->pd->forcefield == PFIELD_GUIDE) | |||||
| { | { | ||||
| /* TODO(sergey): Consider going more granular with more dedicated | /* TODO(sergey): Consider going more granular with more dedicated | ||||
| * particle system operation. */ | * particle system operation. */ | ||||
| DEG_add_object_pointcache_relation( | DEG_add_object_pointcache_relation( | ||||
| handle, relation->ob, DEG_OB_COMP_GEOMETRY, name); | handle, relation->ob, DEG_OB_COMP_GEOMETRY, name); | ||||
| } | } | ||||
| /* Smoke flow relations. */ | /* Smoke flow relations. */ | ||||
| ▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines | |||||