Ran black formatting

This commit is contained in:
Chirag Singh
2024-08-29 19:15:29 +05:30
parent 50f21fe1b1
commit 3ad41cfba6
2 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -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