[Bf-blender-cvs] [68a7f5e594b] master: Depsgraph: Don't use negative enum value
Sergey Sharybin
noreply at git.blender.org
Fri Dec 15 17:48:52 CET 2017
Commit: 68a7f5e594b4e7b2bf6cea1d0fac18660dc98a70
Author: Sergey Sharybin
Date: Fri Dec 15 17:38:12 2017 +0100
Branches: master
https://developer.blender.org/rB68a7f5e594b4e7b2bf6cea1d0fac18660dc98a70
Depsgraph: Don't use negative enum value
Not sure why it sohuld be negative, we shouldn't be using any explicit value
comparison.
===================================================================
M source/blender/depsgraph/intern/depsgraph_types.h
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_types.h b/source/blender/depsgraph/intern/depsgraph_types.h
index 03d98c85148..50e49813c58 100644
--- a/source/blender/depsgraph/intern/depsgraph_types.h
+++ b/source/blender/depsgraph/intern/depsgraph_types.h
@@ -82,9 +82,9 @@ typedef enum eDepsNode_Class {
/* Types of Nodes */
typedef enum eDepsNode_Type {
/* Fallback type for invalid return value */
- DEG_NODE_TYPE_UNDEFINED = -1,
+ DEG_NODE_TYPE_UNDEFINED = 0,
/* Inner Node (Operation) */
- DEG_NODE_TYPE_OPERATION = 0,
+ DEG_NODE_TYPE_OPERATION,
/* **** Generic Types **** */
More information about the Bf-blender-cvs
mailing list