From 6e8dca04ddc6c8ab2ec749377efbb115e857623b Mon Sep 17 00:00:00 2001 From: Jowan-Spooner Date: Thu, 12 Sep 2024 10:11:54 +0200 Subject: [PATCH] Use default portrait instead of invalid debug portrait --- addons/dialogic/Modules/Character/node_portrait_container.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/dialogic/Modules/Character/node_portrait_container.gd b/addons/dialogic/Modules/Character/node_portrait_container.gd index 419e91a15..5b483983b 100644 --- a/addons/dialogic/Modules/Character/node_portrait_container.gd +++ b/addons/dialogic/Modules/Character/node_portrait_container.gd @@ -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)