[Bf-blender-cvs] [3ba7a75] master: Correct cast from recent bool changes

Campbell Barton noreply at git.blender.org
Sun Apr 20 18:53:46 CEST 2014


Commit: 3ba7a75a6c317cee35a96594ea050f23ad136a44
Author: Campbell Barton
Date:   Mon Apr 21 02:48:39 2014 +1000
https://developer.blender.org/rB3ba7a75a6c317cee35a96594ea050f23ad136a44

Correct cast from recent bool changes

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

M	source/blender/editors/sculpt_paint/sculpt_undo.c

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

diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c
index 6ac65e4..29f8fba 100644
--- a/source/blender/editors/sculpt_paint/sculpt_undo.c
+++ b/source/blender/editors/sculpt_paint/sculpt_undo.c
@@ -74,7 +74,7 @@
 static void update_cb(PBVHNode *node, void *rebuild)
 {
 	BKE_pbvh_node_mark_update(node);
-	if (*((int *)rebuild))
+	if (*((bool *)rebuild))
 		BKE_pbvh_node_mark_rebuild_draw(node);
 	BKE_pbvh_node_fully_hidden_set(node, 0);
 }




More information about the Bf-blender-cvs mailing list