Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/texture.c
| Show First 20 Lines • Show All 552 Lines • ▼ Show 20 Lines | void BKE_texture_pointdensity_init_data(PointDensity *pd) | ||||
| pd->speed_scale = 1.0f; | pd->speed_scale = 1.0f; | ||||
| pd->totpoints = 0; | pd->totpoints = 0; | ||||
| pd->object = NULL; | pd->object = NULL; | ||||
| pd->psys = 0; | pd->psys = 0; | ||||
| pd->psys_cache_space = TEX_PD_WORLDSPACE; | pd->psys_cache_space = TEX_PD_WORLDSPACE; | ||||
| pd->falloff_curve = BKE_curvemapping_add(1, 0, 0, 1, 1); | pd->falloff_curve = BKE_curvemapping_add(1, 0, 0, 1, 1); | ||||
| pd->falloff_curve->preset = CURVE_PRESET_LINE; | pd->falloff_curve->preset = CURVE_PRESET_LINE; | ||||
| pd->falloff_curve->cm->flag &= ~CUMA_EXTEND_EXTRAPOLATE; | pd->falloff_curve->flag &= ~CUMA_EXTEND_EXTRAPOLATE; | ||||
| BKE_curvemap_reset(pd->falloff_curve->cm, | BKE_curvemap_reset(pd->falloff_curve->cm, | ||||
| &pd->falloff_curve->clipr, | &pd->falloff_curve->clipr, | ||||
| pd->falloff_curve->preset, | pd->falloff_curve->preset, | ||||
| CURVEMAP_SLOPE_POSITIVE); | CURVEMAP_SLOPE_POSITIVE); | ||||
| BKE_curvemapping_changed(pd->falloff_curve, false); | BKE_curvemapping_changed(pd->falloff_curve, false); | ||||
| } | } | ||||
| PointDensity *BKE_texture_pointdensity_add(void) | PointDensity *BKE_texture_pointdensity_add(void) | ||||
| ▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines | |||||