Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Buerbaum <martin.buerbaum@gmx.at>2010-11-26 17:02:29 +0300
committerMartin Buerbaum <martin.buerbaum@gmx.at>2010-11-26 17:02:29 +0300
commitc688bf297c9e6b2205cd79b69aeccc06f17b3d45 (patch)
tree5db42ee24bf96b25c9387418521b7757d500f123 /space_view3d_panel_measure.py
parent108e7c8a1b0b1b397cc31d7eff109d3345825ac8 (diff)
* Measure Panel - Version 0.7.10
* Applied patch by Filiciss Muhgue that (mostly) fixes the quad view. Thanks for that! * Patch link: https://projects.blender.org/tracker/?func=detail&atid=127&aid=24932&group_id=9 * TODO: Make Quad view more useful (fix text position, display 2D value of the hypotenuse rather than the 3D one)
Diffstat (limited to 'space_view3d_panel_measure.py')
-rw-r--r--space_view3d_panel_measure.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/space_view3d_panel_measure.py b/space_view3d_panel_measure.py
index 1cecf6c4..a96d7f30 100644
--- a/space_view3d_panel_measure.py
+++ b/space_view3d_panel_measure.py
@@ -19,9 +19,9 @@
bl_addon_info = {
"name": "Measure Panel",
"author": "Buerbaum Martin (Pontiac)",
- "version": (0, 7, 9),
+ "version": (0, 7, 10),
"blender": (2, 5, 3),
- "api": 32411,
+ "api": 33331,
"location": "View3D > Properties > Measure",
"description": "Measure distances between objects",
"warning": "",
@@ -58,10 +58,15 @@ It's very helpful to use one or two "Empty" objects with
"Snap during transform" enabled for fast measurement.
Version history:
+v0.7.10 - Applied patch by Filiciss Muhgue that (mostly) fixes the quad view.
+ Patch link: https://projects.blender.org/tracker/?func=
+ detail&atid=127&aid=24932&group_id=9
+ Thanks for that!
+ Removed (now) unneeded "attr" setting for properties.
v0.7.9 - Updated scene properties for changes in property API.
See http://lists.blender.org/pipermail/bf-committers/
2010-September/028654.html
- Synced API changes in7from local copy.
+ Synced API changes in/from local copy.
v0.7.8 - Various Py API changes by Campbell ...
bl_default_closed -> bl_options = {'DEFAULT_CLOSED'}
x.verts -> x.vertices
@@ -436,7 +441,7 @@ def region3d_get_2d_coordinates(context, loc_3d):
total_mat = view_mat
# order is important
- vec = total_mat * Vector((loc_3d[0], loc_3d[1], loc_3d[2], 1.0))
+ vec = Vector((loc_3d[0], loc_3d[1], loc_3d[2], 1.0)) * total_mat
# dehomogenise
vec = Vector((
@@ -469,8 +474,8 @@ def draw_measurements_callback(self, context):
p1, p2, color = line
# Get and convert the Perspective Matrix of the current view/region.
- view3d = bpy.context.space_data
- region = view3d.region_3d
+ view3d = bpy.context
+ region = view3d.region_data
perspMatrix = region.perspective_matrix
tempMat = [perspMatrix[i][j] for i in range(4) for j in range(4)]
perspBuff = bgl.Buffer(bgl.GL_FLOAT, 16, tempMat)