Skip to content

Commit

Permalink
Use default portrait instead of invalid debug portrait
Browse files Browse the repository at this point in the history
  • Loading branch information
Jowan-Spooner committed Sep 12, 2024
1 parent df50073 commit 6e8dca0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/dialogic/Modules/Character/node_portrait_container.gd
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ func _update_debug_portrait_scene() -> void:
if mode == PositionModes.SPEAKER and !portrait_prefix.is_empty():
if portrait_prefix+debug_portrait in character.portraits:
debug_portrait = portrait_prefix+debug_portrait
if not debug_portrait in character.portraits:
debug_portrait = character.default_portrait

var portrait_info: Dictionary = character.get_portrait_info(debug_portrait)

Expand Down

0 comments on commit 6e8dca0

Please sign in to comment.