Allow calculation of depth

This commit is contained in:
Dion Moult
2020-08-07 18:23:50 +10:00
parent e56648e393
commit 1d2677543d
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ class QtoCalculator():
return self.get_length(obj)
elif 'width' in prop_name:
return self.get_width(obj)
elif 'height' in prop_name:
elif 'height' in prop_name or 'depth' in prop_name:
return self.get_height(obj)
elif 'area' in prop_name \
and ('footprint' in prop_name or 'section' in prop_name):
+2 -1
View File
@@ -105,7 +105,8 @@ class BIM_PT_object(Panel):
row.prop(prop, 'string_value', text='')
if 'length' in prop.name.lower() \
or 'width' in prop.name.lower() \
or 'height' in prop.name.lower():
or 'height' in prop.name.lower() \
or 'depth' in prop.name.lower():
op = row.operator('bim.guess_quantity', icon='IPO_EASE_IN_OUT', text='')
op.qto_index = index
op.prop_index = index2