[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [18428] branches/blender2.5/blender/source /blender/editors/sculpt/sculpt.c: Removed more bad function calls in sculpt .

Nicholas Bishop nicholasbishop at gmail.com
Fri Jan 9 06:33:30 CET 2009


Revision: 18428
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18428
Author:   nicholasbishop
Date:     2009-01-09 06:33:28 +0100 (Fri, 09 Jan 2009)

Log Message:
-----------
Removed more bad function calls in sculpt.

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/editors/sculpt/sculpt.c

Modified: branches/blender2.5/blender/source/blender/editors/sculpt/sculpt.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/sculpt/sculpt.c	2009-01-09 05:24:11 UTC (rev 18427)
+++ branches/blender2.5/blender/source/blender/editors/sculpt/sculpt.c	2009-01-09 05:33:28 UTC (rev 18428)
@@ -220,7 +220,7 @@
 			MEM_freeN(ss->texcache);
 			ss->texcache= NULL;
 		}
-		BIF_undo_push("Unlink brush texture");
+		// XXX BIF_undo_push("Unlink brush texture");
 		allqueue(REDRAWBUTSEDIT, 0);
 		allqueue(REDRAWOOPS, 0);
 	}
@@ -1565,7 +1565,7 @@
 
 static void sculpt_undo_push(SculptData *sd)
 {
-	switch(sd->brush->sculpt_tool) {
+	/*XXX: switch(sd->brush->sculpt_tool) {
 	case SCULPT_TOOL_DRAW:
 		BIF_undo_push("Draw Brush"); break;
 	case SCULPT_TOOL_SMOOTH:
@@ -1582,7 +1582,7 @@
  		BIF_undo_push("Flatten Brush"); break;
 	default:
 		BIF_undo_push("Sculpting"); break;
-	}
+		}*/
 }
 
 void sculptmode_correct_state(SculptData *sd)
@@ -1664,7 +1664,7 @@
 	if(sd->texrept!=SCULPTREPT_3D)
 		sculptmode_update_tex(sd);
 
-	getmouseco_areawin(mouse);
+	/*XXX: getmouseco_areawin(mouse); */
 	mvalo[0]= mouse[0];
 	mvalo[1]= mouse[1];
 	lastSigMouse[0]=mouse[0];
@@ -1699,8 +1699,8 @@
 
 	me = get_mesh(ob);
 
-	while (get_mbut() & mousebut) {
-		getmouseco_areawin(mouse);
+	while (/*XXX:get_mbut() & mousebut*/0) {
+		/* XXX: getmouseco_areawin(mouse); */
 		/* If rake, and the mouse has moved over 10 pixels (euclidean) (prevents jitter) then get the new angle */
 		if (rake && (pow(lastSigMouse[0]-mouse[0],2)+pow(lastSigMouse[1]-mouse[1],2))>100){
 			/*Nasty looking, but just orig + new angle really*/
@@ -1756,8 +1756,8 @@
 
 			if(modifier_calculations || sd->brush->sculpt_tool == SCULPT_TOOL_GRAB || !(sd->flags & SCULPT_DRAW_FAST)) {
 				calc_damaged_verts(ss, a);
-				/*XXX: scrarea_do_windraw(curarea); */
-				screen_swapbuffers();
+				/*XXX: scrarea_do_windraw(curarea);
+				screen_swapbuffers(); */
 			} else { /* Optimized drawing */
 				calc_damaged_verts(ss, a);
 
@@ -1768,7 +1768,7 @@
 				
 				/* Draw all the polygons that are inside the modified area(s) */
 				glScissor(scissor_box[0], scissor_box[1], scissor_box[2], scissor_box[3]);
-				sculptmode_draw_mesh(1);
+				/* XXX: sculptmode_draw_mesh(1); */
 				glAccum(GL_LOAD, 1);
 
 				projverts_clear_inside(ss);
@@ -1780,9 +1780,9 @@
 				if(sd->flags & SCULPT_TOOL_DRAW)
 					fdrawXORcirc((float)mouse[0],(float)mouse[1],sd->brush->size);
 				/* XXX: if(smooth_stroke)
-				   sculpt_stroke_draw(); */
+				   sculpt_stroke_draw();
 				
-				myswapbuffers();
+				myswapbuffers(); */
 			}
 
 			BLI_freelistN(&ss->damaged_rects);
@@ -1797,7 +1797,7 @@
 			}
 
 		}
-		else BIF_wait_for_statechange();
+		else ;/*XXX:BIF_wait_for_statechange();*/
 	}
 
 	/* Set the rotation of the brush back to what it was before any rake */





More information about the Bf-blender-cvs mailing list