Skip to content

Commit aba4c07

Browse files
committed
fix
1 parent c782633 commit aba4c07

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

addons/dialogic/Modules/Character/subsystem_portraits.gd

+1-2
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@ func _change_portrait(character_node: Node2D, portrait: String, fade_animation:=
190190
## Unless @force is false, this will take into consideration the character mirror,
191191
## portrait mirror and portrait position mirror settings.
192192
func _change_portrait_mirror(character_node: Node2D, mirrored := false, force := false) -> void:
193-
var latest_portrait := character_node.get_child(-1)
194-
if character_node.get_child_count() > 0 else null
193+
var latest_portrait := character_node.get_child(-1) if character_node.get_child_count() > 0 else null
195194

196195
if latest_portrait and latest_portrait.has_method("_set_mirror"):
197196
var character: DialogicCharacter = character_node.get_meta('character')

0 commit comments

Comments
 (0)