[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33329] trunk/blender/source/blender/ editors/space_view3d/view3d_draw.c: remove calls to update the depth buffer while in particle editmode, this calls glReadPixels() for the viewport which is slow on some systems and the depths are currently not used .

Campbell Barton ideasman42 at gmail.com
Fri Nov 26 13:38:42 CET 2010


Revision: 33329
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33329
Author:   campbellbarton
Date:     2010-11-26 13:38:42 +0100 (Fri, 26 Nov 2010)

Log Message:
-----------
remove calls to update the depth buffer while in particle editmode, this calls glReadPixels() for the viewport which is slow on some systems and the depths are currently not used.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/view3d_draw.c

Modified: trunk/blender/source/blender/editors/space_view3d/view3d_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/view3d_draw.c	2010-11-26 11:33:18 UTC (rev 33328)
+++ trunk/blender/source/blender/editors/space_view3d/view3d_draw.c	2010-11-26 12:38:42 UTC (rev 33329)
@@ -2299,7 +2299,6 @@
 	Base *base;
 	Object *ob;
 	float backcol[3];
-	int retopo= 0, sculptparticle= 0;
 	unsigned int lay_used;
 	Object *obact = OBACT;
 	const char *grid_unit= NULL;
@@ -2439,11 +2438,6 @@
 		v3d->lay_used= lay_used;
 	}
 
-//	retopo= retopo_mesh_check() || retopo_curve_check();
-	sculptparticle= (obact && obact->mode & (OB_MODE_PARTICLE_EDIT)) && !scene->obedit;
-	if(retopo)
-		view3d_update_depths(ar);
-	
 	/* draw selected and editmode */
 	for(base= scene->base.first; base; base= base->next) {
 		if(v3d->lay & base->lay) {
@@ -2451,11 +2445,7 @@
 				draw_object(scene, ar, v3d, base, 0);
 		}
 	}
-	
-	if(!retopo && sculptparticle && !(obact && (obact->dtx & OB_DRAWXRAY))) {
-		view3d_update_depths(ar);
-	}
-	
+
 //	REEB_draw();
 	
 	/* Transp and X-ray afterdraw stuff */
@@ -2464,11 +2454,7 @@
 	if(v3d->afterdraw_xraytransp.first)	view3d_draw_xraytransp(scene, ar, v3d, 1);
 	
 	ED_region_draw_cb_draw(C, ar, REGION_DRAW_POST_VIEW);
-	
-	if(!retopo && sculptparticle && (obact && (OBACT->dtx & OB_DRAWXRAY))) {
-		view3d_update_depths(ar);
-	}
-	
+
 	if(rv3d->rflag & RV3D_CLIPPING)
 		view3d_clr_clipping();
 	





More information about the Bf-blender-cvs mailing list