bugfix [#23722] Artifact in 3D View with empties saved to default .blend.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 8 Sep 2010 02:55:48 +0000 (02:55 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 8 Sep 2010 02:55:48 +0000 (02:55 +0000)
source/blender/editors/space_view3d/drawobject.c

index 513b0e891dc738b805507078746711eef12f4990..321281299ee0c51718b3990f6231c38bef0482be 100644 (file)
@@ -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 */