[Bf-blender-cvs] [5762e7a6790] master: Compositor: Fix wrong number of threads during constant folding

Manuel Castilla noreply at git.blender.org
Fri Jul 30 20:22:04 CEST 2021


Commit: 5762e7a67903e3bb210193361268d91d3441b472
Author: Manuel Castilla
Date:   Fri Jul 30 20:17:34 2021 +0200
Branches: master
https://developer.blender.org/rB5762e7a67903e3bb210193361268d91d3441b472

Compositor: Fix wrong number of threads during constant folding

The variable was uninitialized at that point of execution.

===================================================================

M	source/blender/compositor/intern/COM_ExecutionSystem.cc

===================================================================

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()



More information about the Bf-blender-cvs mailing list