Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_clip/clip_editor.c
| Show All 30 Lines | |||||
| #else | #else | ||||
| # include <io.h> | # include <io.h> | ||||
| #endif | #endif | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "DNA_mask_types.h" | #include "DNA_mask_types.h" | ||||
| #include "BLI_blenlib.h" | |||||
| #include "BLI_fileops.h" | #include "BLI_fileops.h" | ||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| #include "BLI_rect.h" | #include "BLI_rect.h" | ||||
| #include "BLI_task.h" | #include "BLI_task.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_global.h" | #include "BKE_global.h" | ||||
| ▲ Show 20 Lines • Show All 258 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 | |||||