We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e098088 commit a82f08eCopy full SHA for a82f08e
addons/dialogic/Modules/Text/event_text.gd
@@ -325,12 +325,15 @@ func from_text(string:String) -> void:
325
else:
326
character = DialogicResourceUtil.get_character_resource(name)
327
328
- if character == null and Engine.is_editor_hint() == false:
329
- character = DialogicCharacter.new()
330
- character.display_name = name
331
- character.set_identifier(name)
332
- if portrait:
333
- character.color = Color(portrait)
+ if character == null:
+ if Engine.is_editor_hint() == false:
+ character = DialogicCharacter.new()
+ character.display_name = name
+ character.set_identifier(name)
+ if portrait:
334
+ character.color = Color(portrait)
335
+ else:
336
+ character_identifier = name
337
338
if not result:
339
return
0 commit comments