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.
This commit is contained in:
Sergey Sharybin 2017-07-18 11:50:38 +02:00
parent 9356119765
commit 917bff4f44
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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,