mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
data.py rename for consistency
This commit is contained in:
@@ -78,7 +78,7 @@ class StyleAttributesData:
|
|||||||
def load(cls):
|
def load(cls):
|
||||||
cls.data = {
|
cls.data = {
|
||||||
"ifc_style_id": cls.ifc_style_id(),
|
"ifc_style_id": cls.ifc_style_id(),
|
||||||
"attributes": cls.get_attributes(),
|
"attributes": cls.attributes(),
|
||||||
}
|
}
|
||||||
cls.is_loaded = True
|
cls.is_loaded = True
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ class StyleAttributesData:
|
|||||||
return bpy.context.active_object.active_material.BIMMaterialProperties.ifc_style_id
|
return bpy.context.active_object.active_material.BIMMaterialProperties.ifc_style_id
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_attributes(cls):
|
def attributes(cls):
|
||||||
style = tool.Ifc.get().by_id(bpy.context.active_object.active_material.BIMMaterialProperties.ifc_style_id)
|
style = tool.Ifc.get().by_id(bpy.context.active_object.active_material.BIMMaterialProperties.ifc_style_id)
|
||||||
results = []
|
results = []
|
||||||
for name, value in style.get_info().items():
|
for name, value in style.get_info().items():
|
||||||
|
|||||||
Reference in New Issue
Block a user