From 8737dcfc7b248894ee1556b74a388463dc9af92d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 8 Sep 2010 02:55:48 +0000 Subject: bugfix [#23722] Artifact in 3D View with empties saved to default .blend. --- source/blender/editors/space_view3d/drawobject.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 513b0e891dc..321281299ee 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -4772,7 +4772,7 @@ static void draw_empty_sphere (float size) GLUquadricObj *qobj; displist= glGenLists(1); - glNewList(displist, GL_COMPILE_AND_EXECUTE); + glNewList(displist, GL_COMPILE); glPushMatrix(); @@ -4793,8 +4793,8 @@ static void draw_empty_sphere (float size) } glScalef(size, size, size); - glCallList(displist); - glScalef(1/size, 1/size, 1/size); + glCallList(displist); + glScalef(1.0f/size, 1.0f/size, 1.0f/size); } /* draw a cone for use as an empty drawtype */ -- cgit v1.2.3