From df0a675c36d9d728ccbf2ca8401040445f2a47e2 Mon Sep 17 00:00:00 2001 From: Swarnim Arun Date: Mon, 20 May 2019 22:15:43 +0530 Subject: [PATCH] Fix history state setup in VisualScript (cherry picked from commit 7b6296d3243d68287d268643ab5913d9425c87ad) --- visual_script_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visual_script_editor.cpp b/visual_script_editor.cpp index 7e54891..47c0730 100644 --- a/visual_script_editor.cpp +++ b/visual_script_editor.cpp @@ -2040,7 +2040,7 @@ void VisualScriptEditor::set_edit_state(const Variant &p_state) { Dictionary d = p_state; if (d.has("function")) { - edited_func = p_state; + edited_func = d["function"]; selected = edited_func; }