[Bf-blender-cvs] [6d8a25920d] blender2.8: Remove commented out code from editarmature_sketch.c

Dalai Felinto noreply at git.blender.org
Wed Mar 15 13:59:05 CET 2017


Commit: 6d8a25920db54cf46896644ff78495a32d43d6e4
Author: Dalai Felinto
Date:   Wed Mar 15 11:55:32 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB6d8a25920db54cf46896644ff78495a32d43d6e4

Remove commented out code from editarmature_sketch.c

Code was commented out in 2010

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

M	source/blender/editors/armature/editarmature_sketch.c

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

diff --git a/source/blender/editors/armature/editarmature_sketch.c b/source/blender/editors/armature/editarmature_sketch.c
index 0ffadcace4..feabac9d88 100644
--- a/source/blender/editors/armature/editarmature_sketch.c
+++ b/source/blender/editors/armature/editarmature_sketch.c
@@ -2051,38 +2051,6 @@ static void sk_drawSketch(Scene *scene, View3D *UNUSED(v3d), SK_Sketch *sketch,
 		}
 	}
 
-#if 0
-	if (BLI_listbase_is_empty(&sketch->depth_peels) == false) {
-		float colors[8][3] = {
-			{ 1, 0, 0 },
-			{ 0, 1, 0 },
-			{ 0, 0, 1 },
-			{ 1, 1, 0 },
-			{ 1, 0, 1 },
-			{ 0, 1, 1 },
-			{ 1, 1, 1 },
-			{ 0, 0, 0 }
-		};
-		DepthPeel *p;
-		GLUquadric *quad = gluNewQuadric();
-		gluQuadricNormals(quad, GLU_SMOOTH);
-
-		for (p = sketch->depth_peels.first; p; p = p->next)
-		{
-			int index = GET_INT_FROM_POINTER(p->ob);
-			index = (index >> 5) & 7;
-
-			glColor3fv(colors[index]);
-			glPushMatrix();
-			glTranslate3fv(p->p);
-			gluSphere(quad, 0.02, 8, 8);
-			glPopMatrix();
-		}
-
-		gluDeleteQuadric(quad);
-	}
-#endif
-
 	glDisable(GL_DEPTH_TEST);
 
 	/* only draw gesture in active area */




More information about the Bf-blender-cvs mailing list