Skip to content

Commit

Permalink
Don't add the same entity more than once when filling entity browser …
Browse files Browse the repository at this point in the history
…button (#180)
  • Loading branch information
shomykohai authored Jun 29, 2024
1 parent 921eda9 commit 0fcafa5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func _find_all_entities(script_path: String) -> Array[PandoraEntity]:
if category._script_path == script_path:
var entities = Pandora.get_all_entities(category)
for entity in entities:
if entity in all_entities: continue
all_entities.append(entity)
if all_entities.is_empty():
all_entities = Pandora.get_all_entities()
Expand Down

0 comments on commit 0fcafa5

Please sign in to comment.