mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Fix subtle walrus operator bug in align_walls using e before assignment
This commit is contained in:
@@ -109,7 +109,7 @@ def align_walls(
|
|||||||
align_type: AlignType,
|
align_type: AlignType,
|
||||||
):
|
):
|
||||||
reference_obj = blender.get_active_object(is_selected=True)
|
reference_obj = blender.get_active_object(is_selected=True)
|
||||||
if not (e := ifc.get_entity(reference_obj) or not model.get_usage_type(e) == "LAYER2"):
|
if not reference_obj or not (e := ifc.get_entity(reference_obj)) or not model.get_usage_type(e) == "LAYER2":
|
||||||
reference_obj = None
|
reference_obj = None
|
||||||
objs = [
|
objs = [
|
||||||
o
|
o
|
||||||
|
|||||||
Reference in New Issue
Block a user