Fixed ifc window bugs

1) The bug occured if you would try to remove ifc window modifier and add it back again. Now adding new window checks if window was previously added
2) Second bug occured if you import .ifc project with window and some props were not used before (for example window was without transom), then newly added props would have incorrect units.
This commit is contained in:
Andrej730
2023-01-27 17:44:52 +05:00
parent 87515f3839
commit cce27d73fd
2 changed files with 30 additions and 11 deletions
@@ -339,6 +339,7 @@ class BIMWindowProperties(PropertyGroup):
"TRIPLE_PANEL_VERTICAL": (3, ((200, 400), (0, 0 ))),
}
window_added_previously: bpy.props.BoolProperty(default=False)
is_editing: bpy.props.IntProperty(default=-1)
window_type: bpy.props.EnumProperty(
name="Window Type", items=window_types, default="SINGLE_PANEL", update=window_type_prop_update