[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54954] trunk/blender/source/blender/ editors/interface/interface_widgets.c: Bug fix #34334

Ton Roosendaal ton at blender.org
Fri Mar 1 12:42:08 CET 2013


Revision: 54954
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54954
Author:   ton
Date:     2013-03-01 11:42:07 +0000 (Fri, 01 Mar 2013)
Log Message:
-----------
Bug fix #34334

For 2.66a 

Soft shadow was drawing a complete rect, but it should skip the top edge.
That allows transparent menus to still have a shadow too.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/interface/interface_widgets.c

Modified: trunk/blender/source/blender/editors/interface/interface_widgets.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface_widgets.c	2013-03-01 08:56:04 UTC (rev 54953)
+++ trunk/blender/source/blender/editors/interface/interface_widgets.c	2013-03-01 11:42:07 UTC (rev 54954)
@@ -1855,7 +1855,7 @@
 		widget_verts_to_quad_strip(&wtb, totvert, quad_strip);
 
 		glVertexPointer(2, GL_FLOAT, 0, quad_strip);
-		glDrawArrays(GL_QUAD_STRIP, 0, totvert * 2 + 2);
+		glDrawArrays(GL_QUAD_STRIP, 0, totvert * 2); /* add + 2 for getting a complete soft rect. Now it skips top edge to allow transparent menus */
 	}
 
 	glDisableClientState(GL_VERTEX_ARRAY);




More information about the Bf-blender-cvs mailing list