Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Castilla <manzanillawork@gmail.com>2021-07-30 21:17:34 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-07-30 21:20:27 +0300
commit5762e7a67903e3bb210193361268d91d3441b472 (patch)
treec22bf8af17aa395391583a9e7ff3eb1a07b135d7 /source/blender/compositor
parent4dbf4eb10090faa5990bd72ee6c7777c5057d253 (diff)
Compositor: Fix wrong number of threads during constant folding
The variable was uninitialized at that point of execution.
Diffstat (limited to 'source/blender/compositor')
-rw-r--r--source/blender/compositor/intern/COM_ExecutionSystem.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/intern/COM_ExecutionSystem.cc b/source/blender/compositor/intern/COM_ExecutionSystem.cc
index a449d86deb9..c92e292c74f 100644
--- a/source/blender/compositor/intern/COM_ExecutionSystem.cc
+++ b/source/blender/compositor/intern/COM_ExecutionSystem.cc
@@ -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()