[Bf-blender-cvs] [7abf9c0] layers: Use enum instead of preprocessor defines

Julian Eisel noreply at git.blender.org
Tue Nov 22 14:25:52 CET 2016


Commit: 7abf9c05c54941bb99ddd4ec39c9b709a39935bc
Author: Julian Eisel
Date:   Tue Nov 22 14:23:52 2016 +0100
Branches: layers
https://developer.blender.org/rB7abf9c05c54941bb99ddd4ec39c9b709a39935bc

Use enum instead of preprocessor defines

===================================================================

M	source/blender/makesdna/DNA_scene_types.h

===================================================================

diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index 97c9b1f..cb63ec9 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -2269,8 +2269,10 @@ typedef enum eGPencil_Placement_Flags {
 
 /* Collection */
 /* Collection->flag */
-#define COLLECTION_VISIBLE		(1 << 0)
-#define COLLECTION_SELECTABLE	(1 << 1)
+enum {
+	COLLECTION_VISIBLE    = (1 << 0),
+	COLLECTION_SELECTABLE = (1 << 1),
+};
 
 #ifdef __cplusplus
 }




More information about the Bf-blender-cvs mailing list