diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-12-10 08:25:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-10 08:25:31 +0100 |
commit | 2845e6a21a9a1b7c8bf64dc49575213141a68832 (patch) | |
tree | b4f82b8b4b733aa37dd877a0867a441d67a68d15 /editor/editor_node.cpp | |
parent | 16fc023d4487c2a3f26b5bdd3827628de2cd0ba2 (diff) | |
parent | ed1c4bc77db88fa0f8f599ca2d3c4b533a94a654 (diff) |
Merge pull request #34040 from qarmin/unused_variable_more_precise_numbers
Removed unused variables, add some constants numbers
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 383514164a..980d82d6df 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -963,7 +963,7 @@ bool EditorNode::_find_and_save_edited_subresources(Object *obj, Map<RES, bool> int len = varray.size(); for (int i = 0; i < len; i++) { - Variant v = varray.get(i); + const Variant &v = varray.get(i); RES res = v; if (_find_and_save_resource(res, processed, flags)) ret_changed = true; @@ -1027,13 +1027,10 @@ void EditorNode::_save_scene_with_preview(String p_file, int p_idx) { int c3d = 0; _find_node_types(editor_data.get_edited_scene_root(), c2d, c3d); - RID viewport; bool is2d; if (c3d < c2d) { - viewport = scene_root->get_viewport_rid(); is2d = true; } else { - viewport = SpatialEditor::get_singleton()->get_editor_viewport(0)->get_viewport_node()->get_viewport_rid(); is2d = false; } save.step(TTR("Creating Thumbnail"), 1); @@ -1282,7 +1279,6 @@ void EditorNode::restart_editor() { } _exit_editor(); - String exec = OS::get_singleton()->get_executable_path(); List<String> args; args.push_back("--path"); |