Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/readfile.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 6,356 Lines • ▼ Show 20 Lines | if (ar->regiondata) { | ||||
| rv3d->clipbb = newdataadr(fd, rv3d->clipbb); | rv3d->clipbb = newdataadr(fd, rv3d->clipbb); | ||||
| rv3d->depths = NULL; | rv3d->depths = NULL; | ||||
| rv3d->gpuoffscreen = NULL; | rv3d->gpuoffscreen = NULL; | ||||
| rv3d->render_engine = NULL; | rv3d->render_engine = NULL; | ||||
| rv3d->sms = NULL; | rv3d->sms = NULL; | ||||
| rv3d->smooth_timer = NULL; | rv3d->smooth_timer = NULL; | ||||
| rv3d->compositor = NULL; | rv3d->compositor = NULL; | ||||
| rv3d->viewport = NULL; | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ar->v2d.tab_offset = NULL; | ar->v2d.tab_offset = NULL; | ||||
| ar->v2d.tab_num = 0; | ar->v2d.tab_num = 0; | ||||
| ar->v2d.tab_cur = 0; | ar->v2d.tab_cur = 0; | ||||
| ar->v2d.sms = NULL; | ar->v2d.sms = NULL; | ||||
| BLI_listbase_clear(&ar->panels_category); | BLI_listbase_clear(&ar->panels_category); | ||||
| BLI_listbase_clear(&ar->handlers); | BLI_listbase_clear(&ar->handlers); | ||||
| BLI_listbase_clear(&ar->uiblocks); | BLI_listbase_clear(&ar->uiblocks); | ||||
| ar->headerstr = NULL; | ar->headerstr = NULL; | ||||
| ar->visible = 0; | ar->visible = 0; | ||||
| ar->type = NULL; | ar->type = NULL; | ||||
| ar->swap = 0; | |||||
| ar->do_draw = 0; | ar->do_draw = 0; | ||||
| ar->manipulator_map = NULL; | ar->manipulator_map = NULL; | ||||
| ar->regiontimer = NULL; | ar->regiontimer = NULL; | ||||
| ar->draw_buffer = NULL; | |||||
| memset(&ar->drawrct, 0, sizeof(ar->drawrct)); | memset(&ar->drawrct, 0, sizeof(ar->drawrct)); | ||||
| } | } | ||||
| static void direct_link_area(FileData *fd, ScrArea *area) | static void direct_link_area(FileData *fd, ScrArea *area) | ||||
| { | { | ||||
| SpaceLink *sl; | SpaceLink *sl; | ||||
| ARegion *ar; | ARegion *ar; | ||||
| ▲ Show 20 Lines • Show All 471 Lines • ▼ Show 20 Lines | |||||
| #ifdef WIN32 | #ifdef WIN32 | ||||
| win->ime_data = NULL; | win->ime_data = NULL; | ||||
| #endif | #endif | ||||
| BLI_listbase_clear(&win->queue); | BLI_listbase_clear(&win->queue); | ||||
| BLI_listbase_clear(&win->handlers); | BLI_listbase_clear(&win->handlers); | ||||
| BLI_listbase_clear(&win->modalhandlers); | BLI_listbase_clear(&win->modalhandlers); | ||||
| BLI_listbase_clear(&win->gesture); | BLI_listbase_clear(&win->gesture); | ||||
| BLI_listbase_clear(&win->drawdata); | |||||
| win->drawmethod = -1; | |||||
| win->drawfail = 0; | |||||
| win->active = 0; | win->active = 0; | ||||
| win->cursor = 0; | win->cursor = 0; | ||||
| win->lastcursor = 0; | win->lastcursor = 0; | ||||
| win->modalcursor = 0; | win->modalcursor = 0; | ||||
| win->grabcursor = 0; | win->grabcursor = 0; | ||||
| win->addmousemove = true; | win->addmousemove = true; | ||||
| win->stereo3d_format = newdataadr(fd, win->stereo3d_format); | win->stereo3d_format = newdataadr(fd, win->stereo3d_format); | ||||
| ▲ Show 20 Lines • Show All 500 Lines • ▼ Show 20 Lines | |||||
| static bool direct_link_screen(FileData *fd, bScreen *sc) | static bool direct_link_screen(FileData *fd, bScreen *sc) | ||||
| { | { | ||||
| bool wrong_id = false; | bool wrong_id = false; | ||||
| sc->regionbase.first = sc->regionbase.last= NULL; | sc->regionbase.first = sc->regionbase.last= NULL; | ||||
| sc->context = NULL; | sc->context = NULL; | ||||
| sc->active_region = NULL; | sc->active_region = NULL; | ||||
| sc->swap = 0; | |||||
| sc->preview = direct_link_preview_image(fd, sc->preview); | sc->preview = direct_link_preview_image(fd, sc->preview); | ||||
| if (!direct_link_area_map(fd, AREAMAP_FROM_SCREEN(sc))) { | if (!direct_link_area_map(fd, AREAMAP_FROM_SCREEN(sc))) { | ||||
| printf("Error reading Screen %s... removing it.\n", sc->id.name + 2); | printf("Error reading Screen %s... removing it.\n", sc->id.name + 2); | ||||
| wrong_id = true; | wrong_id = true; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 3,304 Lines • Show Last 20 Lines | |||||