Pset primary measure type should now display a tooltip on hover

Awaiting for ifc measure descriptions to be added to the docs
This commit is contained in:
Gorgious56
2022-10-28 16:32:17 +02:00
parent 528df00027
commit 490da99792
2 changed files with 4 additions and 2 deletions
@@ -19,6 +19,7 @@
import bpy
import ifcopenshell
import blenderbim.tool as tool
from blenderbim.bim.prop import get_ifc_entity_description
# TODO: Should this cache belong here? Dunno. Maybe.
@@ -173,4 +174,4 @@ class AddEditCustomPropertiesData:
@classmethod
def primary_measure_type(cls):
schema = tool.Ifc.schema()
return [(t, t, "") for t in sorted([d.name() for d in schema.declarations() if hasattr(d, "declared_type")])]
return [(t, t, get_ifc_entity_description(t)) for t in sorted([d.name() for d in schema.declarations() if hasattr(d, "declared_type")])]
@@ -21,6 +21,7 @@ import bpy
import ifcopenshell
import blenderbim.tool as tool
from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.prop import get_ifc_entity_description
def refresh():
@@ -43,7 +44,7 @@ class PsetTemplatesData:
@classmethod
def primary_measure_type(cls):
schema = tool.Ifc.schema()
return [(t, t, "") for t in sorted([d.name() for d in schema.declarations() if hasattr(d, "declared_type")])]
return [(t, t, get_ifc_entity_description(t)) for t in sorted([d.name() for d in schema.declarations() if hasattr(d, "declared_type")])]
@classmethod
def pset_template_files(cls):