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:
authormeta-androcto <meta.androcto1@gmail.com>2019-08-09 05:50:40 +0300
committermeta-androcto <meta.androcto1@gmail.com>2019-08-09 05:50:40 +0300
commit7008857ef02c89def879d25aa5ba14c35293c0f3 (patch)
tree17110c1fd6fb584a532466844e05a8af945f6727 /mesh_tools
parent9ce456d94f0b706f2591d7d2e2c353a61c730e8e (diff)
mesh_tools/mesh_edges_length: T67840 D5358
Diffstat (limited to 'mesh_tools')
-rw-r--r--mesh_tools/mesh_edges_length.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/mesh_tools/mesh_edges_length.py b/mesh_tools/mesh_edges_length.py
index f4f1d067..44b415c9 100644
--- a/mesh_tools/mesh_edges_length.py
+++ b/mesh_tools/mesh_edges_length.py
@@ -5,7 +5,7 @@ bl_info = {
"description": "Edges length",
"author": "Giuseppe De Marco [BlenderLab] inspired by NirenYang",
"version": (0, 1, 0),
- "blender": (2, 71, 0),
+ "blender": (2, 80, 0),
"location": "Toolbar > Tools > Mesh Tools: set Length(Shit+Alt+E)",
"warning": "",
"wiki_url": "",
@@ -206,10 +206,6 @@ class LengthSet(Operator):
if edge_length_debug:
self.report({'INFO'}, str(self.originary_edge_length_dict))
- if bpy.context.scene.unit_settings.system == 'IMPERIAL':
- # imperial to metric conversion
- vector.length = (0.9144 * vector.length) / 3
-
self.target_length = vector.length
return wm.invoke_props_dialog(self)
@@ -307,16 +303,6 @@ class LengthSet(Operator):
else:
edge.verts[0].co = verts[1] - vector
- if bpy.context.scene.unit_settings.system == 'IMPERIAL':
- """
- # yards to metric conversion
- vector.length = ( 3. * vector.length ) / 0.9144
- # metric to yards conversion
- vector.length = ( 0.9144 * vector.length ) / 3.
- """
- for mvert in edge.verts:
- # school time: 0.9144 : 3 = X : mvert
- mvert.co = (0.9144 * mvert.co) / 3
if edge_length_debug:
self.report({'INFO'},