Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_camera.cpp
| Show First 20 Lines • Show All 893 Lines • ▼ Show 20 Lines | if (use_border) { | ||||
| params.width = max(params.width, 1); | params.width = max(params.width, 1); | ||||
| params.height = max(params.height, 1); | params.height = max(params.height, 1); | ||||
| } | } | ||||
| else { | else { | ||||
| params.width = width; | params.width = width; | ||||
| params.height = height; | params.height = height; | ||||
| } | } | ||||
| if (b_v3d) { | |||||
| /* Retrieve pass from `View3DShading.cycles.render_pass` */ | |||||
| BL::View3DShading b_view3dshading = b_v3d.shading(); | |||||
| PointerRNA cshading = RNA_pointer_get(&b_view3dshading.ptr, "cycles"); | |||||
| PassType display_pass = (PassType)get_enum(cshading, "render_pass", -1, -1); | |||||
| if (display_pass != PASS_COMBINED) { | |||||
| Pass::add(display_pass, params.passes); | |||||
| } | |||||
| } | |||||
| return params; | return params; | ||||
| } | } | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||