mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 22:16:41 +00:00
Add warning when PHYSICAL/NOTDEFINED uses IfcColourRgb for Metallic, because this value is IFC-only and does not affect Blender appearance.
This commit is contained in:
@@ -180,17 +180,26 @@ class BIM_PT_styles(Panel):
|
|||||||
text=f"{self.props.reflectance_method} will be skipped: only PHYSICAL / NOTDEFINED / FLAT are supported",
|
text=f"{self.props.reflectance_method} will be skipped: only PHYSICAL / NOTDEFINED / FLAT are supported",
|
||||||
icon="ERROR",
|
icon="ERROR",
|
||||||
)
|
)
|
||||||
|
elif self.props.reflectance_method in ("PHYSICAL", "NOTDEFINED"):
|
||||||
|
if self.props.specular_colour_class == "IfcColourRgb":
|
||||||
|
self.layout.label(
|
||||||
|
text="Metallic color is IFC-only in PHYSICAL/NOTDEFINED and does not affect Blender appearance",
|
||||||
|
icon="ERROR",
|
||||||
|
)
|
||||||
elif self.props.reflectance_method == "FLAT":
|
elif self.props.reflectance_method == "FLAT":
|
||||||
if self.props.diffuse_colour_class == "IfcNormalisedRatioMeasure":
|
if self.props.diffuse_colour_class == "IfcNormalisedRatioMeasure":
|
||||||
self.layout.label(
|
self.layout.label(
|
||||||
text="Emissive ratio is IFC-only in FLAT Reflectance method and does not affect Blender appearance",
|
text="Emissive ratio is IFC-only in FLAT Reflectance method and does not affect Blender appearance",
|
||||||
icon="ERROR",
|
icon="ERROR",
|
||||||
)
|
)
|
||||||
if self.props.specular_colour_class == "IfcNormalisedRatioMeasure":
|
self.layout.label(
|
||||||
self.layout.label(
|
text="Specular value is IFC-only in FLAT Reflectance method and does not affect Blender appearance",
|
||||||
text="Specular ratio is IFC-only in FLAT Reflectance method and does not affect Blender appearance",
|
icon="ERROR",
|
||||||
icon="ERROR",
|
)
|
||||||
)
|
self.layout.label(
|
||||||
|
text="Highlight value is IFC-only in FLAT Reflectance method and does not affect Blender appearance",
|
||||||
|
icon="ERROR",
|
||||||
|
)
|
||||||
|
|
||||||
row = self.layout.row(align=True)
|
row = self.layout.row(align=True)
|
||||||
row.label(text="Emissive" if self.props.reflectance_method == "FLAT" else "Diffuse")
|
row.label(text="Emissive" if self.props.reflectance_method == "FLAT" else "Diffuse")
|
||||||
|
|||||||
Reference in New Issue
Block a user