[Bf-blender-cvs] [917bff4f446] blender2.8: Depsgraph: Add generic parameters evaluation operation code

Sergey Sharybin noreply at git.blender.org
Wed Jul 19 17:33:40 CEST 2017


Commit: 917bff4f4467e8650d4db8dedea8e9bcadedec2e
Author: Sergey Sharybin
Date:   Tue Jul 18 11:50:38 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB917bff4f4467e8650d4db8dedea8e9bcadedec2e

Depsgraph: Add generic parameters evaluation operation code

Currently unused, but the idea is to use this code instead of placeholder
operation code followed by string comparison.

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

M	source/blender/depsgraph/intern/depsgraph_type_defines.cc
M	source/blender/depsgraph/intern/depsgraph_types.h

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

diff --git a/source/blender/depsgraph/intern/depsgraph_type_defines.cc b/source/blender/depsgraph/intern/depsgraph_type_defines.cc
index 638b8179a7a..b987fe9b6f1 100644
--- a/source/blender/depsgraph/intern/depsgraph_type_defines.cc
+++ b/source/blender/depsgraph/intern/depsgraph_type_defines.cc
@@ -100,6 +100,7 @@ static const char *stringify_opcode(eDepsOperation_Code opcode)
 #define STRINGIFY_OPCODE(name) case DEG_OPCODE_##name: return #name
 		/* Generic Operations. */
 		STRINGIFY_OPCODE(OPERATION);
+		STRINGIFY_OPCODE(PARAMETERS_EVAL);
 		STRINGIFY_OPCODE(PLACEHOLDER);
 		/* Animation, Drivers, etc. */
 		STRINGIFY_OPCODE(ANIMATION);
diff --git a/source/blender/depsgraph/intern/depsgraph_types.h b/source/blender/depsgraph/intern/depsgraph_types.h
index f846e81d52f..d90f331370a 100644
--- a/source/blender/depsgraph/intern/depsgraph_types.h
+++ b/source/blender/depsgraph/intern/depsgraph_types.h
@@ -141,6 +141,9 @@ typedef enum eDepsOperation_Code {
 	/* Placeholder for operations which don't need special mention */
 	DEG_OPCODE_OPERATION = 0,
 
+	/* Generic parameters evaluation. */
+	DEG_OPCODE_PARAMETERS_EVAL,
+
 	// XXX: Placeholder while porting depsgraph code
 	DEG_OPCODE_PLACEHOLDER,




More information about the Bf-blender-cvs mailing list