Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
95223f5f
Commit
95223f5f
authored
14 years ago
by
Martin Buerbaum
Browse files
Options
Downloads
Patches
Plain Diff
* Version 0.7.3.1 - Fixed bug that made all lines in Blender stippled :-)
parent
280923e6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
space_view3d_panel_measure.py
+7
-0
7 additions, 0 deletions
space_view3d_panel_measure.py
with
7 additions
and
0 deletions
space_view3d_panel_measure.py
+
7
−
0
View file @
95223f5f
...
...
@@ -44,6 +44,7 @@ It's very helpful to use one or two "Empty" objects with
"
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 @@ def draw_measurements_callback(self, context):
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 @@ def draw_measurements_callback(self, context):
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
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment