Skip to content
Permalink
Browse files

Change frame render invocation

  • Loading branch information...
Mango-3 authored and est77 committed Jun 1, 2019
1 parent 274e30b commit ee88ad24bf7c0e9c84c7ac5a4a214f6e1ce0ea01
Showing with 4 additions and 7 deletions.
  1. +2 −4 src/appleseedmaya/appleseedsession.cpp
  2. +2 −3 src/appleseedmaya/swatchrenderer.cpp
@@ -873,7 +873,6 @@ namespace
*m_project,
params,
g_resourceSearchPaths,
&m_rendererController,
static_cast<asr::ITileCallbackFactory*>(m_tileCallbackFactory.get())));

// Render in a thread (non blocking).
@@ -906,11 +905,10 @@ namespace
*m_project,
params,
g_resourceSearchPaths,
&m_rendererController,
static_cast<asr::ITileCallbackFactory*>(nullptr)));

// Render in the main thread (blocking).
m_renderer->render();
m_renderer->render(m_rendererController);
}

void progressiveRender()
@@ -930,7 +928,7 @@ namespace

void renderFunc()
{
m_renderer->render();
m_renderer->render(m_rendererController);
IdleJobQueue::pushJob(&AppleseedSession::endSession);
}

@@ -179,8 +179,7 @@ namespace
new asr::MasterRenderer(
m_project.ref(),
m_project->configurations().get_by_name("final")->get_inherited_parameters(),
resourceSearchPaths,
&m_rendererController));
resourceSearchPaths));
}

void uninitialize()
@@ -270,7 +269,7 @@ namespace
m_project->set_frame(frame);

// Render.
m_renderer->render();
m_renderer->render(m_rendererController);
copySwatchImage(dstImage);
}

0 comments on commit ee88ad2

Please sign in to comment.
You can’t perform that action at this time.