[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [856] trunk/py/scripts/addons/ space_view3d_panel_measure.py: * Version 0.7.3. 1 - Fixed bug that made all lines in Blender stippled :-)
Martin Buerbaum
martin.buerbaum at gmx.at
Tue Jul 27 11:30:58 CEST 2010
Revision: 856
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=856
Author: pontiac
Date: 2010-07-27 11:30:57 +0200 (Tue, 27 Jul 2010)
Log Message:
-----------
* Version 0.7.3.1 - Fixed bug that made all lines in Blender stippled :-)
Modified Paths:
--------------
trunk/py/scripts/addons/space_view3d_panel_measure.py
Modified: trunk/py/scripts/addons/space_view3d_panel_measure.py
===================================================================
--- trunk/py/scripts/addons/space_view3d_panel_measure.py 2010-07-27 08:45:19 UTC (rev 855)
+++ trunk/py/scripts/addons/space_view3d_panel_measure.py 2010-07-27 09:30:57 UTC (rev 856)
@@ -44,6 +44,7 @@
"Snap during transform" enabled for fast measurement.
Version history:
+v0.7.3.1 - Fixed bug that made all lines in Blender stippled :-)
v0.7.3 - Added display of delta x/y/z value in 3d view.
* Inspired by warpi's patch here:
http://blenderartists.org/forum/showpost.php?p=1671033&postcount=47
@@ -482,6 +483,10 @@
bgl.glGetFloatv(bgl.GL_BLEND, blend_prev)
blend_prev = blend_prev[0]
+ line_stipple_prev = bgl.Buffer(bgl.GL_BYTE, [1])
+ bgl.glGetFloatv(bgl.GL_LINE_STIPPLE, line_stipple_prev)
+ line_stipple_prev = line_stipple_prev[0]
+
# Store glColor4f
color_prev = bgl.Buffer(bgl.GL_FLOAT, [4])
bgl.glGetFloatv(bgl.GL_COLOR, color_prev)
@@ -535,6 +540,8 @@
bgl.glLineWidth(lineWidth_prev)
if not blend_prev:
bgl.glDisable(bgl.GL_BLEND)
+ if not line_stipple_prev:
+ bgl.glDisable(bgl.GL_LINE_STIPPLE)
bgl.glColor4f(color_prev[0],
color_prev[1],
color_prev[2],
More information about the Bf-extensions-cvs
mailing list