Depsgraph: Fix typo in assert

This commit is contained in:
Sergey Sharybin 2017-01-26 17:22:54 +01:00
parent fd69ba2255
commit 67bef6bcf6
Notes: blender-bot 2023-02-14 07:25:46 +01:00
Referenced by issue #50565, Transform: Planar constraints don't work properly with non-Blender key configurations
Referenced by issue #50550, GPUShader: compile error - Background image not showing in viewport
1 changed files with 1 additions and 1 deletions

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];
}