Compositor: Fix wrong number of threads during constant folding

The variable was uninitialized at that point of execution.
This commit is contained in:
Manuel Castilla 2021-07-30 20:17:34 +02:00
parent 4dbf4eb100
commit 5762e7a679
1 changed files with 1 additions and 1 deletions

View File

@ -43,6 +43,7 @@ ExecutionSystem::ExecutionSystem(RenderData *rd,
const ColorManagedDisplaySettings *displaySettings,
const char *viewName)
{
num_work_threads_ = WorkScheduler::get_num_cpu_threads();
this->m_context.setViewName(viewName);
this->m_context.setScene(scene);
this->m_context.setbNodeTree(editingtree);
@ -82,7 +83,6 @@ ExecutionSystem::ExecutionSystem(RenderData *rd,
BLI_assert_msg(0, "Non implemented execution model");
break;
}
num_work_threads_ = WorkScheduler::get_num_cpu_threads();
}
ExecutionSystem::~ExecutionSystem()