Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/dynamicpaint.c
| Show First 20 Lines • Show All 5,150 Lines • ▼ Show 20 Lines | static int dynamicPaint_prepareEffectStep(struct Depsgraph *depsgraph, | ||||
| float shrink_speed = 0.0f, spread_speed = 0.0f; | float shrink_speed = 0.0f, spread_speed = 0.0f; | ||||
| float fastest_effect, avg_dist; | float fastest_effect, avg_dist; | ||||
| int steps; | int steps; | ||||
| PaintSurfaceData *sData = surface->data; | PaintSurfaceData *sData = surface->data; | ||||
| PaintBakeData *bData = sData->bData; | PaintBakeData *bData = sData->bData; | ||||
| /* Init force data if required */ | /* Init force data if required */ | ||||
| if (surface->effect & MOD_DPAINT_EFFECT_DO_DRIP) { | if (surface->effect & MOD_DPAINT_EFFECT_DO_DRIP) { | ||||
| ListBase *effectors = BKE_effectors_create(depsgraph, ob, NULL, surface->effector_weights); | ListBase *effectors = BKE_effectors_create( | ||||
| depsgraph, ob, NULL, surface->effector_weights, false); | |||||
| /* allocate memory for force data (dir vector + strength) */ | /* allocate memory for force data (dir vector + strength) */ | ||||
| *force = MEM_mallocN(sizeof(float[4]) * sData->total_points, "PaintEffectForces"); | *force = MEM_mallocN(sizeof(float[4]) * sData->total_points, "PaintEffectForces"); | ||||
| if (*force) { | if (*force) { | ||||
| DynamicPaintEffectData data = { | DynamicPaintEffectData data = { | ||||
| .surface = surface, | .surface = surface, | ||||
| .scene = scene, | .scene = scene, | ||||
| ▲ Show 20 Lines • Show All 1,243 Lines • Show Last 20 Lines | |||||