[Bf-blender-cvs] [668a329] depsgraph_refactor: Fix for assert: has to take the 'done' argument into account.

Lukas Tönne noreply at git.blender.org
Mon May 26 08:03:54 CEST 2014


Commit: 668a32998f949f3dfbabbec7591d56b9f0a6da8f
Author: Lukas Tönne
Date:   Mon May 26 07:56:34 2014 +0200
https://developer.blender.org/rB668a32998f949f3dfbabbec7591d56b9f0a6da8f

Fix for assert: has to take the 'done' argument into account.

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

M	source/blender/depsgraph/util/depsgraph_util_task.cpp

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

diff --git a/source/blender/depsgraph/util/depsgraph_util_task.cpp b/source/blender/depsgraph/util/depsgraph_util_task.cpp
index e3005ef..51de84f 100644
--- a/source/blender/depsgraph/util/depsgraph_util_task.cpp
+++ b/source/blender/depsgraph/util/depsgraph_util_task.cpp
@@ -172,7 +172,7 @@ void DepsgraphTaskPool::num_decrease(int done)
 {
 	BLI_mutex_lock(&num_mutex);
 	
-	BLI_assert(num > 0);
+	BLI_assert(num >= done);
 	num -= done;
 	
 	if(num == 0) {




More information about the Bf-blender-cvs mailing list