From 53735787ffd5902e31861132e5cc11147cfbf5b8 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 13 Mar 2013 14:50:33 +0000 Subject: Disable viewer nodes and previews when rendering in background mode This node and operations are not useful in background mode anyway, but calculating them could be really time-consuming especially when working on 4K frames. --- source/blender/compositor/operations/COM_PreviewOperation.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/compositor/operations/COM_PreviewOperation.h') diff --git a/source/blender/compositor/operations/COM_PreviewOperation.h b/source/blender/compositor/operations/COM_PreviewOperation.h index 9e774d0e41b..0da6b8e4e56 100644 --- a/source/blender/compositor/operations/COM_PreviewOperation.h +++ b/source/blender/compositor/operations/COM_PreviewOperation.h @@ -26,6 +26,7 @@ #include "DNA_image_types.h" #include "DNA_color_types.h" #include "BLI_rect.h" +#include "BKE_global.h" class PreviewOperation : public NodeOperation { protected: @@ -42,7 +43,7 @@ protected: const ColorManagedDisplaySettings *m_displaySettings; public: PreviewOperation(const ColorManagedViewSettings *viewSettings, const ColorManagedDisplaySettings *displaySettings); - bool isOutputOperation(bool rendering) const { return true; } + bool isOutputOperation(bool rendering) const { return !G.background; } void initExecution(); void deinitExecution(); const CompositorPriority getRenderPriority() const; -- cgit v1.2.3