diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-11-02 17:36:28 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-11-02 17:36:28 +0400 |
commit | 79a389ee3711f0528c33e5aeb4b2a202e5e44b38 (patch) | |
tree | 844f5ad24583cf4664ff98b591fa7859bb71ad78 /source/blender/render/extern | |
parent | 3d35e004d35faf45968c0cead7d758a5599a2bcc (diff) |
RenderEngine: add .is_animation and .is_preview properties to detect if it's
an animation or preview render that is being done.
Diffstat (limited to 'source/blender/render/extern')
-rw-r--r-- | source/blender/render/extern/include/RE_engine.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/render/extern/include/RE_engine.h b/source/blender/render/extern/include/RE_engine.h index 1326ed495ec..344ef301f4c 100644 --- a/source/blender/render/extern/include/RE_engine.h +++ b/source/blender/render/extern/include/RE_engine.h @@ -46,11 +46,16 @@ struct Scene; /* External Engine */ +/* RenderEngineType.flag */ #define RE_INTERNAL 1 #define RE_GAME 2 #define RE_USE_PREVIEW 4 #define RE_USE_POSTPROCESS 8 +/* RenderEngine.flag */ +#define RE_ENGINE_ANIMATION 1 +#define RE_ENGINE_PREVIEW 2 + extern ListBase R_engines; typedef struct RenderEngineType { @@ -70,6 +75,8 @@ typedef struct RenderEngineType { typedef struct RenderEngine { RenderEngineType *type; + int flag; + struct Render *re; ListBase fullresult; } RenderEngine; |