Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_templates.c
| Show First 20 Lines • Show All 3,986 Lines • ▼ Show 20 Lines | case UICURVE_FUNC_HANDLE_AUTO: /* set auto */ | ||||
| BKE_curvemap_handle_set(cuma, HD_AUTO); | BKE_curvemap_handle_set(cuma, HD_AUTO); | ||||
| BKE_curvemapping_changed(cumap, false); | BKE_curvemapping_changed(cumap, false); | ||||
| break; | break; | ||||
| case UICURVE_FUNC_HANDLE_AUTO_ANIM: /* set auto-clamped */ | case UICURVE_FUNC_HANDLE_AUTO_ANIM: /* set auto-clamped */ | ||||
| BKE_curvemap_handle_set(cuma, HD_AUTO_ANIM); | BKE_curvemap_handle_set(cuma, HD_AUTO_ANIM); | ||||
| BKE_curvemapping_changed(cumap, false); | BKE_curvemapping_changed(cumap, false); | ||||
| break; | break; | ||||
| case UICURVE_FUNC_EXTEND_HOZ: /* extend horiz */ | case UICURVE_FUNC_EXTEND_HOZ: /* extend horiz */ | ||||
| cuma->flag &= ~CUMA_EXTEND_EXTRAPOLATE; | cumap->flag &= ~CUMA_EXTEND_EXTRAPOLATE; | ||||
| BKE_curvemapping_changed(cumap, false); | BKE_curvemapping_changed(cumap, false); | ||||
| break; | break; | ||||
| case UICURVE_FUNC_EXTEND_EXP: /* extend extrapolate */ | case UICURVE_FUNC_EXTEND_EXP: /* extend extrapolate */ | ||||
| cuma->flag |= CUMA_EXTEND_EXTRAPOLATE; | cumap->flag |= CUMA_EXTEND_EXTRAPOLATE; | ||||
| BKE_curvemapping_changed(cumap, false); | BKE_curvemapping_changed(cumap, false); | ||||
| break; | break; | ||||
| } | } | ||||
| ED_undo_push(C, "CurveMap tools"); | ED_undo_push(C, "CurveMap tools"); | ||||
| ED_region_tag_redraw(CTX_wm_region(C)); | ED_region_tag_redraw(CTX_wm_region(C)); | ||||
| } | } | ||||
| static uiBlock *curvemap_tools_func( | static uiBlock *curvemap_tools_func( | ||||
| ▲ Show 20 Lines • Show All 3,613 Lines • Show Last 20 Lines | |||||