diff --git a/addons/SEAL/visualizers/SettingsPanel.gd b/addons/SEAL/visualizers/SettingsPanel.gd index e75ddeb..ea98354 100644 --- a/addons/SEAL/visualizers/SettingsPanel.gd +++ b/addons/SEAL/visualizers/SettingsPanel.gd @@ -32,8 +32,7 @@ func _ready(): ##Called on made visible. func _on_panel_visibility_changed(): - assert(settings_collection) - if is_inside_tree() && is_visible_in_tree():#fire only if made visible and in scene tree + if settings_collection && is_inside_tree() && is_visible_in_tree():#fire only if made visible and in scene tree for child in _setting_container.get_children(): _setting_container.remove_child(child) _group_button_dict.clear() @@ -53,6 +52,7 @@ func _on_panel_visibility_changed(): _update_visuals() + ##Internal method for adding a new group, adds a button that controls the visibility of the settings that are connected to this group. func _add_group(group_name:String): _group_settings_dict[group_name] = []