Add warnings for emissive and specular ratios in FLAT reflectance method (IFC only no Blender appearance)

This commit is contained in:
falken10vdl
2026-04-27 16:42:53 +02:00
parent a89621b179
commit 679fe4dcae
+11
View File
@@ -180,6 +180,17 @@ class BIM_PT_styles(Panel):
text=f"{self.props.reflectance_method} will be skipped: only PHYSICAL / NOTDEFINED / FLAT are supported",
icon="ERROR",
)
elif self.props.reflectance_method == "FLAT":
if self.props.diffuse_colour_class == "IfcNormalisedRatioMeasure":
self.layout.label(
text="Emissive ratio is IFC-only in FLAT Reflectance method and does not affect Blender appearance",
icon="ERROR",
)
if self.props.specular_colour_class == "IfcNormalisedRatioMeasure":
self.layout.label(
text="Specular ratio is IFC-only in FLAT Reflectance method and does not affect Blender appearance",
icon="ERROR",
)
row = self.layout.row(align=True)
row.label(text="Emissive" if self.props.reflectance_method == "FLAT" else "Diffuse")