[Bf-blender-cvs] [e8e8dcc] soc-2016-pbvh-painting: Did a little cleanup. Noticed I

Nathan Vollmer noreply at git.blender.org
Sat Jun 18 13:28:43 CEST 2016


Commit: e8e8dcc84015e90d58e41047478b68b62752e343
Author: Nathan Vollmer
Date:   Sat Jun 18 02:28:51 2016 -0600
Branches: soc-2016-pbvh-painting
https://developer.blender.org/rBe8e8dcc84015e90d58e41047478b68b62752e343

Did a little cleanup. Noticed I

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

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

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

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index b79efb3..ef4c006 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -4355,22 +4355,11 @@ bool sculpt_stroke_get_location(bContext *C, float out[3], const float mouse[2])
 	BKE_pbvh_raycast(ss->pbvh, sculpt_raycast_cb, &srd,
 		ray_start, ray_normal, srd.original);
 
-	/* for vwpaint */
-	// Needs to be moved. After getting 3D location, iterate through leaves and determine 
-	//which are within the brush region
-	//if (cache && srd.hit) {
-	//	if (cache->nodes[0] == srd.node) cache->didNodeChange = false;
-		//else { 
-			//cache->nodes[0] = srd.node;
-			//cache->didNodeChange = true;
-		//}
-	//}
-	//else if (cache) cache->nodes[0] = NULL;
-
 	copy_v3_v3(out, ray_normal);
 	mul_v3_fl(out, srd.dist);
 	add_v3_v3(out, ray_start);
 
+	//used in vwpaint
 	if (cache && srd.hit){
 		copy_v3_v3(cache->location, out);
 	}




More information about the Bf-blender-cvs mailing list