mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-28 15:53:00 +00:00
Fix bug where split screen selection from previous page is out of range on the next
This commit is contained in:
@@ -205,8 +205,11 @@ class BIM_PT_brickschema_viewport(Panel):
|
|||||||
|
|
||||||
if self.props.brick_create_relations_toggled and self.props.split_screen_toggled:
|
if self.props.brick_create_relations_toggled and self.props.split_screen_toggled:
|
||||||
row = self.layout.row(align=True)
|
row = self.layout.row(align=True)
|
||||||
split_screen_selection = self.props.split_screen_bricks[self.props.split_screen_active_brick_index]
|
try:
|
||||||
if split_screen_selection.total_items:
|
split_screen_selection = self.props.split_screen_bricks[self.props.split_screen_active_brick_index]
|
||||||
|
except:
|
||||||
|
split_screen_selection = None
|
||||||
|
if not split_screen_selection or split_screen_selection.total_items:
|
||||||
row.label(text="No selection", icon="INFO")
|
row.label(text="No selection", icon="INFO")
|
||||||
else:
|
else:
|
||||||
prop_with_search(row, self.props, "new_brick_relation_type", text="")
|
prop_with_search(row, self.props, "new_brick_relation_type", text="")
|
||||||
|
|||||||
Reference in New Issue
Block a user