mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 13:48:03 +00:00
Ran black formatting
This commit is contained in:
@@ -27,12 +27,12 @@ with open(os.path.join(os.path.dirname(__file__), "spectraldb.json"), "r") as f:
|
|||||||
|
|
||||||
class MATERIAL_UL_radiance_materials(bpy.types.UIList):
|
class MATERIAL_UL_radiance_materials(bpy.types.UIList):
|
||||||
def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
|
def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
|
||||||
if self.layout_type in {'DEFAULT', 'COMPACT'}:
|
if self.layout_type in {"DEFAULT", "COMPACT"}:
|
||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
|
|
||||||
# Adding color preview or glass icon
|
# Adding color preview or glass icon
|
||||||
if item.category == "Glass":
|
if item.category == "Glass":
|
||||||
row.label(icon='SHADING_TEXTURE')
|
row.label(icon="SHADING_TEXTURE")
|
||||||
else:
|
else:
|
||||||
color_rect = row.row()
|
color_rect = row.row()
|
||||||
color_rect.prop(item, "color", text="")
|
color_rect.prop(item, "color", text="")
|
||||||
|
|||||||
@@ -573,9 +573,9 @@ class RefreshIFCMaterials(bpy.types.Operator):
|
|||||||
color = (
|
color = (
|
||||||
render_item.SurfaceColour.Red,
|
render_item.SurfaceColour.Red,
|
||||||
render_item.SurfaceColour.Green,
|
render_item.SurfaceColour.Green,
|
||||||
render_item.SurfaceColour.Blue
|
render_item.SurfaceColour.Blue,
|
||||||
)
|
)
|
||||||
if hasattr(render_item, 'Transparency') and render_item.Transparency is not None:
|
if hasattr(render_item, "Transparency") and render_item.Transparency is not None:
|
||||||
transparency = render_item.Transparency
|
transparency = render_item.Transparency
|
||||||
|
|
||||||
# Add material with color
|
# Add material with color
|
||||||
|
|||||||
Reference in New Issue
Block a user