[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54036] trunk/blender/source/blender/ editors/space_view3d/drawobject.c: Code cleanup
Joshua Leung
aligorith at gmail.com
Wed Jan 23 12:24:51 CET 2013
Revision: 54036
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54036
Author: aligorith
Date: 2013-01-23 11:24:48 +0000 (Wed, 23 Jan 2013)
Log Message:
-----------
Code cleanup
* Removed unused block of code
* matrice -> matrix
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_view3d/drawobject.c
Modified: trunk/blender/source/blender/editors/space_view3d/drawobject.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/drawobject.c 2013-01-23 11:02:28 UTC (rev 54035)
+++ trunk/blender/source/blender/editors/space_view3d/drawobject.c 2013-01-23 11:24:48 UTC (rev 54036)
@@ -4923,7 +4923,7 @@
glEnd();
}
-/*place to add drawers */
+/* place to add drawers */
static void drawhandlesN(Nurb *nu, short sel, short hide_handles)
{
@@ -5424,39 +5424,6 @@
gluDeleteQuadric(qobj);
}
-/* draw points on curve speed handles */
-#if 0 /* XXX old animation system stuff */
-static void curve_draw_speed(Scene *scene, Object *ob)
-{
- Curve *cu = ob->data;
- IpoCurve *icu;
- BezTriple *bezt;
- float loc[4], dir[3];
- int a;
-
- if (cu->ipo == NULL)
- return;
-
- icu = cu->ipo->curve.first;
- if (icu == NULL || icu->totvert < 2)
- return;
-
- glPointSize(UI_GetThemeValuef(TH_VERTEX_SIZE));
- bglBegin(GL_POINTS);
-
- for (a = 0, bezt = icu->bezt; a < icu->totvert; a++, bezt++) {
- if (where_on_path(ob, bezt->vec[1][1], loc, dir)) {
- UI_ThemeColor((bezt->f2 & SELECT) && ob == OBACT ? TH_VERTEX_SELECT : TH_VERTEX);
- bglVertex3fv(loc);
- }
- }
-
- glPointSize(1.0);
- bglEnd();
-}
-#endif /* XXX old animation system stuff */
-
-
static void draw_textcurs(RegionView3D *rv3d, float textcurs[4][2])
{
cpack(0);
@@ -5560,7 +5527,7 @@
}
-/* needs fixing if non-identity matrice used */
+/* needs fixing if non-identity matrix used */
static void drawtube(const float vec[3], float radius, float height, float tmat[4][4])
{
float cur[3];
@@ -5582,7 +5549,8 @@
glVertex3f(cur[0], cur[1] - radius, cur[2]);
glEnd();
}
-/* needs fixing if non-identity matrice used */
+
+/* needs fixing if non-identity matrix used */
static void drawcone(const float vec[3], float radius, float height, float tmat[4][4])
{
float cur[3];
@@ -5603,6 +5571,7 @@
glVertex3f(cur[0], cur[1] - radius, cur[2]);
glEnd();
}
+
/* return TRUE if nothing was drawn */
static int drawmball(Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *base,
const char dt, const short dflag, const unsigned char ob_wire_col[4])
@@ -5651,7 +5620,6 @@
}
while (ml) {
-
/* draw radius */
if (mb->editelems) {
if ((dflag & DRAW_CONSTCOLOR) == 0) {
More information about the Bf-blender-cvs
mailing list