mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 04:59:52 +00:00
Fix walrus operator precedence in MaterialCreator
The `is not ...` was being captured by the walrus assignment due to missing parentheses, causing the condition to always evaluate incorrectly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -64,8 +64,8 @@ class MaterialCreator:
|
|||||||
mesh: Union[OBJECT_DATA_TYPE, None],
|
mesh: Union[OBJECT_DATA_TYPE, None],
|
||||||
shape_has_openings: bool,
|
shape_has_openings: bool,
|
||||||
) -> None:
|
) -> None:
|
||||||
if ((rep := getattr(element, "Representation", ...) is not ...) and not rep) or (
|
if (((rep := getattr(element, "Representation", ...)) is not ... and not rep) or
|
||||||
(rep := getattr(element, "RepresentationMaps", ...) is not ...) and not rep
|
((rep := getattr(element, "RepresentationMaps", ...)) is not ... and not rep)
|
||||||
):
|
):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user