Skip to content

Commit

Permalink
Set Dialogue Message to update Default Scene on step()
Browse files Browse the repository at this point in the history
  • Loading branch information
Carles Homs committed Dec 4, 2024
1 parent b19c627 commit d966346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/script/nodes/dialogue/dialogue_message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@

class OScriptNodeDialogueMessageInstance : public OScriptNodeInstance
{
static inline const String DEFAULT_SCENE = OrchestratorSettings::get_singleton()->get_setting("settings/dialogue_message_scene");

DECLARE_SCRIPT_NODE_INSTANCE(OScriptNodeDialogueMessage)
int _choices{ 0 };
Node* _ui{ nullptr };
Expand All @@ -51,6 +49,8 @@ class OScriptNodeDialogueMessageInstance : public OScriptNodeInstance

int step(OScriptExecutionContext& p_context) override
{
static const char* DEFAULT_SCENE = String(OrchestratorSettings::get_singleton()->get_setting("settings/dialogue_message_scene")).utf8().get_data();

if (p_context.get_step_mode() == STEP_MODE_RESUME)
{
// User made selection
Expand Down

0 comments on commit d966346

Please sign in to comment.