forked from blender/blender
Fix review comments 2 #31
@ -126,7 +126,8 @@ void FinalEngine::prepare_for_render(Depsgraph *depsgraph)
|
|||||||
CameraData(scene->camera, image_res, pxr::GfVec4f(0, 0, 1, 1)).gf_camera(border);
|
CameraData(scene->camera, image_res, pxr::GfVec4f(0, 0, 1, 1)).gf_camera(border);
|
||||||
|
|
||||||
free_camera_delegate_->SetCamera(camera);
|
free_camera_delegate_->SetCamera(camera);
|
||||||
render_task_delegate_->set_camera_and_viewport(free_camera_delegate_->GetCameraId(), pxr::GfVec4d(0, 0, resolution_[0], resolution_[1]));
|
render_task_delegate_->set_camera_and_viewport(
|
||||||
|
free_camera_delegate_->GetCameraId(), pxr::GfVec4d(0, 0, resolution_[0], resolution_[1]));
|
||||||
render_task_delegate_->set_renderer_aov(pxr::HdAovTokens->color);
|
render_task_delegate_->set_renderer_aov(pxr::HdAovTokens->color);
|
||||||
|
|
||||||
if (simple_light_task_delegate_) {
|
if (simple_light_task_delegate_) {
|
||||||
|
@ -73,7 +73,7 @@ void PreviewEngine::render(Depsgraph *depsgraph)
|
|||||||
if (render_task_delegate_->is_converged()) {
|
if (render_task_delegate_->is_converged()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
render_task_delegate_->get_renderer_aov_data(pxr::HdAovTokens->color, pixels_->data());
|
render_task_delegate_->get_renderer_aov_data(pxr::HdAovTokens->color, pixels_->data());
|
||||||
update_render_result(layer_name_, resolution_[0], resolution_[1], pixels_);
|
update_render_result(layer_name_, resolution_[0], resolution_[1], pixels_);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user