Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_clip/clip_editor.c
| Show First 20 Lines • Show All 304 Lines • ▼ Show 20 Lines | bool ED_space_clip_color_sample(SpaceClip *sc, ARegion *region, int mval[2], float r_col[3]) | ||||
| return ret; | return ret; | ||||
| } | } | ||||
| void ED_clip_update_frame(const Main *mainp, int cfra) | void ED_clip_update_frame(const Main *mainp, int cfra) | ||||
| { | { | ||||
| /* image window, compo node users */ | /* image window, compo node users */ | ||||
| for (wmWindowManager *wm = mainp->wm.first; wm; wm = wm->id.next) { /* only 1 wm */ | for (wmWindowManager *wm = mainp->wm.first; wm; wm = wm->id.next) { /* only 1 wm */ | ||||
| for (wmWindow *win = wm->windows.first; win; win = win->next) { | LISTBASE_FOREACH (wmWindow *, win, &wm->windows) { | ||||
| bScreen *screen = WM_window_get_active_screen(win); | bScreen *screen = WM_window_get_active_screen(win); | ||||
| for (ScrArea *area = screen->areabase.first; area; area = area->next) { | LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { | ||||
| if (area->spacetype == SPACE_CLIP) { | if (area->spacetype == SPACE_CLIP) { | ||||
| SpaceClip *sc = area->spacedata.first; | SpaceClip *sc = area->spacedata.first; | ||||
| sc->scopes.ok = false; | sc->scopes.ok = false; | ||||
| BKE_movieclip_user_set_frame(&sc->user, cfra); | BKE_movieclip_user_set_frame(&sc->user, cfra); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 857 Lines • Show Last 20 Lines | |||||