Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/fluid.c
| Show First 20 Lines • Show All 3,219 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static void update_effectors( | static void update_effectors( | ||||
| Depsgraph *depsgraph, Scene *scene, Object *ob, FluidDomainSettings *fds, float UNUSED(dt)) | Depsgraph *depsgraph, Scene *scene, Object *ob, FluidDomainSettings *fds, float UNUSED(dt)) | ||||
| { | { | ||||
| ListBase *effectors; | ListBase *effectors; | ||||
| /* make sure smoke flow influence is 0.0f */ | /* make sure smoke flow influence is 0.0f */ | ||||
| fds->effector_weights->weight[PFIELD_FLUIDFLOW] = 0.0f; | fds->effector_weights->weight[PFIELD_FLUIDFLOW] = 0.0f; | ||||
| effectors = BKE_effectors_create(depsgraph, ob, NULL, fds->effector_weights); | effectors = BKE_effectors_create(depsgraph, ob, NULL, fds->effector_weights, false); | ||||
| if (effectors) { | if (effectors) { | ||||
| /* Precalculate wind forces. */ | /* Precalculate wind forces. */ | ||||
| UpdateEffectorsData data; | UpdateEffectorsData data; | ||||
| data.scene = scene; | data.scene = scene; | ||||
| data.fds = fds; | data.fds = fds; | ||||
| data.effectors = effectors; | data.effectors = effectors; | ||||
| data.density = manta_smoke_get_density(fds->fluid); | data.density = manta_smoke_get_density(fds->fluid); | ||||
| ▲ Show 20 Lines • Show All 1,964 Lines • Show Last 20 Lines | |||||