diff options
author | Swarnim Arun <swarnimarun11@gmail.com> | 2019-05-20 22:15:43 +0530 |
---|---|---|
committer | Swarnim Arun <swarnimarun11@gmail.com> | 2019-05-20 22:15:43 +0530 |
commit | 7155477caa581433b5d5daea42d23f1d924869b5 (patch) | |
tree | 4669dd241edc25590e21aacd4b7d47d325db6627 | |
parent | 5cc1c7d642044637e011ba221b2a52bf45c5a531 (diff) |
Fix history state setup in VisualScript
-rw-r--r-- | modules/visual_script/visual_script_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index 4f6828bf1c..5c408cf29e 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/visual_script_editor.cpp @@ -2041,7 +2041,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; } |