From 949e1da462f7bad5669c5f4d44b7a6339428c72f 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 7155477caa581433b5d5daea42d23f1d924869b5) --- modules/visual_script/visual_script_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index 7e54891d977..47c073035f1 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/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; }