Fix preview engine #10

Closed
Georgiy Markelov wants to merge 1 commits from fix-preview-engine into hydra-render

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

View File

@ -35,7 +35,8 @@ void PreviewEngine::render(BL::Depsgraph &b_depsgraph)
renderTaskDelegate->SetCameraAndViewport(freeCameraDelegate->GetCameraId(), GfVec4d(0, 0, buffer_res[0], buffer_res[1])); renderTaskDelegate->SetCameraAndViewport(freeCameraDelegate->GetCameraId(), GfVec4d(0, 0, buffer_res[0], buffer_res[1]));
renderTaskDelegate->SetRendererAov(HdAovTokens->color); renderTaskDelegate->SetRendererAov(HdAovTokens->color);
HdTaskSharedPtrVector tasks = renderTaskDelegate->GetTasks(); HdTaskSharedPtrVector tasks;
tasks.push_back(renderTaskDelegate->GetTask());
vector<float> pixels = vector<float>(buffer_res[0] * buffer_res[1] * 4); // 4 - number of channels vector<float> pixels = vector<float>(buffer_res[0] * buffer_res[1] * 4); // 4 - number of channels