Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_graph/graph_ops.c
| Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | if (scene->r.flag & SCER_LOCK_FRAME_SELECTION) { | ||||
| CLAMP(CFRA, PSFRA, PEFRA); | CLAMP(CFRA, PSFRA, PEFRA); | ||||
| } | } | ||||
| else { | else { | ||||
| /* Prevent negative frames */ | /* Prevent negative frames */ | ||||
| FRAMENUMBER_MIN_CLAMP(CFRA); | FRAMENUMBER_MIN_CLAMP(CFRA); | ||||
| } | } | ||||
| SUBFRA = 0.0f; | SUBFRA = 0.0f; | ||||
| DEG_id_tag_update(&scene->id, ID_RECALC_AUDIO_SEEK); | DEG_id_tag_update(&scene->id, ID_RECALC_FRAME_CHANGE); | ||||
| } | } | ||||
| /* set the cursor value */ | /* set the cursor value */ | ||||
| sipo->cursorVal = RNA_float_get(op->ptr, "value"); | sipo->cursorVal = RNA_float_get(op->ptr, "value"); | ||||
| /* send notifiers - notifiers for frame should force an update for both vars ok... */ | /* send notifiers - notifiers for frame should force an update for both vars ok... */ | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_FRAME, scene); | WM_event_add_notifier(C, NC_SCENE | ND_FRAME, scene); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 421 Lines • Show Last 20 Lines | |||||