From e75059e3b6a22b70bef4b4f86829f79f1abd188f Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 25 Feb 2020 16:15:03 +0100 Subject: 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. --- source/blender/makesdna/DNA_layer_types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesdna') 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; -- cgit v1.2.3