[Bf-blender-cvs] [67bef6bcf6] master: Depsgraph: Fix typo in assert

Sergey Sharybin noreply at git.blender.org
Thu Jan 26 17:23:05 CET 2017


Commit: 67bef6bcf619db3620c71ce82758488fb39b68b6
Author: Sergey Sharybin
Date:   Thu Jan 26 17:22:54 2017 +0100
Branches: master
https://developer.blender.org/rB67bef6bcf619db3620c71ce82758488fb39b68b6

Depsgraph: Fix typo in assert

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

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

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

diff --git a/source/blender/depsgraph/intern/depsgraph_type_defines.cc b/source/blender/depsgraph/intern/depsgraph_type_defines.cc
index 4ce91516c8..39c189629f 100644
--- a/source/blender/depsgraph/intern/depsgraph_type_defines.cc
+++ b/source/blender/depsgraph/intern/depsgraph_type_defines.cc
@@ -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];
 	}




More information about the Bf-blender-cvs mailing list