Depsgraph: Fix typo in assert

This commit is contained in:
Sergey Sharybin
2017-01-26 17:22:54 +01:00
parent fd69ba2255
commit 67bef6bcf6

View File

@@ -145,7 +145,7 @@ DepsOperationStringifier::DepsOperationStringifier()
const char *DepsOperationStringifier::operator[](eDepsOperation_Code opcode)
{
BLI_assert((opcode > 0) && (opcode < DEG_NUM_OPCODES));
BLI_assert((opcode >= 0) && (opcode < DEG_NUM_OPCODES));
if (opcode >= 0 && opcode < DEG_NUM_OPCODES) {
return names_[opcode];
}