Commit 64c9d112 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Deactivating permanent render. This seems to solve many bugs and perf problems

This will have to be reverted or reworked later.
parent c6a8e0cb
......@@ -304,8 +304,9 @@ void WorkflowRenderer::stop()
{
//Since we want permanent render (to have a permanent render update, we shouldn't
//stop, but pause
togglePlayPause( true );
m_mainWorkflow->setCurrentFrame( 0, MainWorkflow::Renderer );
// togglePlayPause( true );
// m_mainWorkflow->setCurrentFrame( 0, MainWorkflow::Renderer );
killRenderer();
}
void
......@@ -474,19 +475,19 @@ void WorkflowRenderer::__endReached()
void
WorkflowRenderer::mainWorkflowLenghtChanged( qint64 newLength )
{
if ( newLength > 0 )
{
if ( m_oldLength == 0 )
{
if ( m_isRendering == false )
startPreview();
m_paused = false;
togglePlayPause( true );
}
}
else if ( newLength == 0 && m_isRendering == true )
{
stop();
}
m_oldLength = newLength;
// if ( newLength > 0 )
// {
// if ( m_oldLength == 0 )
// {
// if ( m_isRendering == false )
// startPreview();
// m_paused = false;
// togglePlayPause( true );
// }
// }
// else if ( newLength == 0 && m_isRendering == true )
// {
// stop();
// }
// m_oldLength = newLength;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment