Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/render/render_preview.cc
| Show First 20 Lines • Show All 707 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| if (idp) { | if (idp) { | ||||
| wmWindowManager *wm = CTX_wm_manager(C); | wmWindowManager *wm = CTX_wm_manager(C); | ||||
| ScrArea *area = CTX_wm_area(C); | ScrArea *area = CTX_wm_area(C); | ||||
| ID *id = (ID *)idp; | ID *id = (ID *)idp; | ||||
| ID *parent = (ID *)parentp; | ID *parent = (ID *)parentp; | ||||
| MTex *slot = (MTex *)slotp; | MTex *slot = (MTex *)slotp; | ||||
| SpaceProperties *sbuts = CTX_wm_space_properties(C); | SpaceProperties *sbuts = CTX_wm_space_properties(C); | ||||
| ShaderPreview *sp = static_cast<ShaderPreview *>(WM_jobs_customdata(wm, area)); | ShaderPreview *sp = static_cast<ShaderPreview *>( | ||||
| WM_jobs_customdata_from_type(wm, area, WM_JOB_TYPE_LOAD_PREVIEW)); | |||||
| rcti newrect; | rcti newrect; | ||||
| bool ok; | bool ok; | ||||
| int newx = BLI_rcti_size_x(rect); | int newx = BLI_rcti_size_x(rect); | ||||
| int newy = BLI_rcti_size_y(rect); | int newy = BLI_rcti_size_y(rect); | ||||
| newrect.xmin = rect->xmin; | newrect.xmin = rect->xmin; | ||||
| newrect.xmax = rect->xmin; | newrect.xmax = rect->xmin; | ||||
| newrect.ymin = rect->ymin; | newrect.ymin = rect->ymin; | ||||
| ▲ Show 20 Lines • Show All 1,442 Lines • Show Last 20 Lines | |||||