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
b4a29c19
Commit
b4a29c19
authored
14 years ago
by
Fabian Fricke
Browse files
Options
Downloads
Patches
Plain Diff
Correctly takes translation into account again now.
parent
de899bda
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
+5
-3
5 additions, 3 deletions
space_view3d_panel_measure.py
with
5 additions
and
3 deletions
space_view3d_panel_measure.py
+
5
−
3
View file @
b4a29c19
...
...
@@ -44,6 +44,8 @@ It's very helpful to use one or two "Empty" objects with
"
Snap during transform
"
enabled for fast measurement.
Version history:
v0.7.5.3 - Small fix for bug in v0.7.5.1
(location was off when object was moved)
v0.7.5.2 - Changed callback registration back to original code &
fixed bug in there (use bl_idname instead of bl_label)
v0.7.5.1 - Global mode is now taking rotation into account properly.
...
...
@@ -254,7 +256,7 @@ def getMeasurePoints(context):
return
(
p1
,
p2
,
COLOR_LOCAL
)
else
:
p1
=
vert_loc
*
ob_mat_trans
+
obj_loc
p1
=
vert_loc
*
ob_mat_trans
p2
=
cur_loc
return
(
p1
,
p2
,
COLOR_GLOBAL
)
...
...
@@ -273,8 +275,8 @@ def getMeasurePoints(context):
return
(
p1
,
p2
,
COLOR_LOCAL
)
else
:
p1
=
obj_loc
+
vert1_loc
*
ob_mat_trans
p2
=
obj_loc
+
vert2_loc
*
ob_mat_trans
p1
=
vert1_loc
*
ob_mat_trans
p2
=
vert2_loc
*
ob_mat_trans
return
(
p1
,
p2
,
COLOR_GLOBAL
)
else
:
...
...
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