Pset nominal values now show their description on right click

This commit is contained in:
Gorgious
2022-10-31 19:09:58 +01:00
parent 90369bf7f7
commit 7eefb3f62f
4 changed files with 51 additions and 42 deletions
@@ -128,6 +128,9 @@ class EnablePsetEditing(bpy.types.Operator):
elif metadata.data_type == "boolean":
metadata.bool_value = False if metadata.is_null else data[prop_template.Name]
metadata.ifc_class = pset_template.Name
blenderbim.bim.helper.add_attribute_description(metadata)
def get_data_type(self, prop_template):
if prop_template.TemplateType in ["Q_LENGTH", "Q_AREA", "Q_VOLUME", "Q_WEIGHT", "Q_TIME"]:
return "float"