diff options
| author | Will Nations | 2017-12-17 16:07:15 -0600 |
|---|---|---|
| committer | Will Nations | 2017-12-17 16:07:15 -0600 |
| commit | f19fc83546f0557054816bfcd2e5342c82cf54c9 (patch) | |
| tree | b2eb497e74cfded3cbfc7999432c12c200ccbd9c /modules/visual_script | |
| parent | 1b9c8daf7bb981f93e23a0a9acd5fbb9b90730fc (diff) | |
| download | godot-f19fc83546f0557054816bfcd2e5342c82cf54c9.tar.gz godot-f19fc83546f0557054816bfcd2e5342c82cf54c9.tar.zst godot-f19fc83546f0557054816bfcd2e5342c82cf54c9.zip | |
Diffstat (limited to 'modules/visual_script')
| -rw-r--r-- | modules/visual_script/visual_script_editor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index 6c58de8a5..a580ee3a7 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/visual_script_editor.cpp @@ -228,7 +228,7 @@ protected: if (String(p_name) == "type") { - Dictionary dc = d.copy(); + Dictionary dc = d.duplicate(); dc["type"] = p_value; undo_redo->create_action(TTR("Set Variable Type")); undo_redo->add_do_method(script.ptr(), "set_variable_info", var, dc); @@ -241,7 +241,7 @@ protected: if (String(p_name) == "hint") { - Dictionary dc = d.copy(); + Dictionary dc = d.duplicate(); dc["hint"] = p_value; undo_redo->create_action(TTR("Set Variable Type")); undo_redo->add_do_method(script.ptr(), "set_variable_info", var, dc); @@ -254,7 +254,7 @@ protected: if (String(p_name) == "hint_string") { - Dictionary dc = d.copy(); + Dictionary dc = d.duplicate(); dc["hint_string"] = p_value; undo_redo->create_action(TTR("Set Variable Type")); undo_redo->add_do_method(script.ptr(), "set_variable_info", var, dc); |
