Skip to content

Commit

Permalink
Allow calculation of depth
Browse files Browse the repository at this point in the history
  • Loading branch information
Moult committed Aug 7, 2020
1 parent e56648e commit 1d26775
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ifcblenderexport/blenderbim/bim/qto.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def guess_quantity(self, prop_name, alternative_prop_names, obj):
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):
Expand Down
3 changes: 2 additions & 1 deletion src/ifcblenderexport/blenderbim/bim/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def draw(self, context):
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
Expand Down

0 comments on commit 1d26775

Please sign in to comment.