Depsgraph: Fix typo in assert
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 26 Jan 2017 16:22:54 +0000 (17:22 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 26 Jan 2017 16:22:54 +0000 (17:22 +0100)
source/blender/depsgraph/intern/depsgraph_type_defines.cc

index 4ce91516c84a924d4046a75a279082115338c281..39c189629f2e9c8cb3ff8e9d6e5f1044cdff0097 100644 (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];
        }