Fix #981. Incorrect and inaccurate conversion to imperial units in quantities.

This commit is contained in:
Dion Moult
2020-09-07 21:46:13 +10:00
parent b43f77bc01
commit 9c190d74bb
3 changed files with 5 additions and 5 deletions
@@ -18,12 +18,12 @@ class SIUnitHelper:
'yard': 0.914,
'mile': 1609,
'square inch': 0.0006452,
'square foot': 0.09290,
'square foot': 0.09290304,
'square yard': 0.83612736,
'acre': 4046.86,
'square mile': 2588881,
'cubic inch': 0.00001639,
'cubic foot': 0.02832,
'cubic foot': 0.02831684671168849,
'cubic yard': 0.7636,
'litre': 0.001,
'fluid ounce UK': 0.0000284130625,
@@ -3464,7 +3464,7 @@ class GuessQuantity(bpy.types.Operator):
def get_prefix_name(self, value):
if '/' in value:
return value.split('/')
return None, bpy.context.scene.BIMProperties.area_unit
return None, value
def get_blender_prefix_name(self):
if bpy.context.scene.unit_settings.system == 'IMPERIAL':
@@ -17,12 +17,12 @@ si_conversions = {
'yard': 0.914,
'mile': 1609,
'square inch': 0.0006452,
'square foot': 0.09290,
'square foot': 0.09290304,
'square yard': 0.83612736,
'acre': 4046.86,
'square mile': 2588881,
'cubic inch': 0.00001639,
'cubic foot': 0.02832,
'cubic foot': 0.02831684671168849,
'cubic yard': 0.7636,
'litre': 0.001,
'fluid ounce UK': 0.0000284130625,