diff options
author | Fabian Fricke <frigi.f@googlemail.com> | 2010-07-31 05:19:04 +0400 |
---|---|---|
committer | Fabian Fricke <frigi.f@googlemail.com> | 2010-07-31 05:19:04 +0400 |
commit | b4a29c199c87485187402e519be07a3a905711fe (patch) | |
tree | 8af8f41331e222d2ca2f8815c5e765244ebb2ffd /space_view3d_panel_measure.py | |
parent | de899bdaee1b3c1fea577ac4465b7db0e1a59e47 (diff) |
Correctly takes translation into account again now.
Diffstat (limited to 'space_view3d_panel_measure.py')
-rw-r--r-- | space_view3d_panel_measure.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/space_view3d_panel_measure.py b/space_view3d_panel_measure.py index 8b555100..9ac406ca 100644 --- a/space_view3d_panel_measure.py +++ b/space_view3d_panel_measure.py @@ -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: |