Fix subtle walrus operator bug in align_walls using e before assignment

This commit is contained in:
Andrej730
2026-03-18 19:28:05 +05:00
parent 3590b08e68
commit 3bf0edeca2
+1 -1
View File
@@ -109,7 +109,7 @@ def align_walls(
align_type: AlignType,
):
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
objs = [
o