From 42c0c80c006d98754c1779d16ddfd67602eb3d23 Mon Sep 17 00:00:00 2001 From: Shomy <61943525+shomykohai@users.noreply.github.com> Date: Mon, 1 Jul 2024 00:31:41 +0200 Subject: [PATCH] Clear entity browser dropdown selection after resetting property --- .../ui/editor/inspector/entity_instance_browser_property.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/pandora/ui/editor/inspector/entity_instance_browser_property.gd b/addons/pandora/ui/editor/inspector/entity_instance_browser_property.gd index f2067e4..2200460 100644 --- a/addons/pandora/ui/editor/inspector/entity_instance_browser_property.gd +++ b/addons/pandora/ui/editor/inspector/entity_instance_browser_property.gd @@ -51,6 +51,7 @@ func _update_property() -> void: func _update_deferred() -> void: var current_entity = get_edited_object()[get_edited_property()] as PandoraEntity if current_entity == null: + property_control.select(-1) return for id in ids_to_entities.keys(): if ids_to_entities[id].get_entity_id() == current_entity.get_entity_id():