Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_info/info_ops.c
| Context not available. | |||||
| color_progress = powf((float)reports->reporttimer->duration / color_timeout, 2.0); | color_progress = powf((float)reports->reporttimer->duration / color_timeout, 2.0); | ||||
| /* save us from too many draws */ | /* save us from too many draws */ | ||||
| if (color_progress <= 1.0f) { | if (color_progress <= 1.0f) send_note = 1; | ||||
| send_note = 1; | |||||
| /* fade colors out sharply according to progress through fade-out duration */ | |||||
| interp_v4_v4v4(rti->col, rti->col, neutral_col, color_progress); | |||||
| } | |||||
| /* collapse report at end of timeout */ | /* collapse report at end of timeout */ | ||||
| if (progress * timeout > timeout - COLLAPSE_TIMEOUT) { | if (progress * timeout > timeout - COLLAPSE_TIMEOUT) { | ||||
| Context not available. | |||||