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:
authorJeroen Bakker <jeroen@blender.org>2020-02-25 18:15:03 +0300
committerJeroen Bakker <jeroen@blender.org>2020-02-25 18:16:31 +0300
commite75059e3b6a22b70bef4b4f86829f79f1abd188f (patch)
tree42ac34b195bc96f8a6bbacaf6dae7946947e2f3c /source/blender/makesdna
parent6dd3e7d84da632402bab3ee136fc7d3b47b3b697 (diff)
Cleanup: removed runtime error
The render passes checked all bits of an integer, that can lead to runtime errors. Added the max bit in the DNA and used this.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_layer_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_layer_types.h b/source/blender/makesdna/DNA_layer_types.h
index 09d02e9a375..62ae5768879 100644
--- a/source/blender/makesdna/DNA_layer_types.h
+++ b/source/blender/makesdna/DNA_layer_types.h
@@ -47,6 +47,7 @@ typedef enum eViewLayerEEVEEPassType {
EEVEE_RENDER_PASS_AO = (1 << 13),
EEVEE_RENDER_PASS_BLOOM = (1 << 14),
} eViewLayerEEVEEPassType;
+#define EEVEE_RENDER_PASS_MAX_BIT 15
typedef struct Base {
struct Base *next, *prev;