Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/intern/COM_ExecutionSystem.cpp
| Show All 40 Lines | |||||
| #include "COM_Debug.h" | #include "COM_Debug.h" | ||||
| #include "BKE_global.h" | #include "BKE_global.h" | ||||
| #ifdef WITH_CXX_GUARDEDALLOC | #ifdef WITH_CXX_GUARDEDALLOC | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #endif | #endif | ||||
| ExecutionSystem::ExecutionSystem(RenderData *rd, bNodeTree *editingtree, bool rendering, bool fastcalculation, | ExecutionSystem::ExecutionSystem(RenderData *rd, Scene *scene, bNodeTree *editingtree, bool rendering, bool fastcalculation, | ||||
| const ColorManagedViewSettings *viewSettings, const ColorManagedDisplaySettings *displaySettings) | const ColorManagedViewSettings *viewSettings, const ColorManagedDisplaySettings *displaySettings) | ||||
| { | { | ||||
| this->m_context.setScene(scene); | |||||
| this->m_context.setbNodeTree(editingtree); | this->m_context.setbNodeTree(editingtree); | ||||
| this->m_context.setPreviewHash(editingtree->previews); | this->m_context.setPreviewHash(editingtree->previews); | ||||
| this->m_context.setFastCalculation(fastcalculation); | this->m_context.setFastCalculation(fastcalculation); | ||||
| /* initialize the CompositorContext */ | /* initialize the CompositorContext */ | ||||
| if (rendering) { | if (rendering) { | ||||
| this->m_context.setQuality((CompositorQuality)editingtree->render_quality); | this->m_context.setQuality((CompositorQuality)editingtree->render_quality); | ||||
| } | } | ||||
| else { | else { | ||||
| ▲ Show 20 Lines • Show All 335 Lines • Show Last 20 Lines | |||||