diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-10-04 17:17:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-04 17:17:27 +0200 |
| commit | bb201c5887684044eb3ba35344d15bd476908f9e (patch) | |
| tree | b75bbe24bc594393b49765b2698d6cce225f227b /scene/main/node.cpp | |
| parent | 4a4995524cd8f0ddeef934eeece7911496d77f79 (diff) | |
| parent | b85dfd990e26ffb22643d78e5f00ba135d1f97e7 (diff) | |
| download | redot-engine-bb201c5887684044eb3ba35344d15bd476908f9e.tar.gz | |
Merge pull request #53303 from akien-mga/53295-gdscript-completion-quote-style
Diffstat (limited to 'scene/main/node.cpp')
| -rw-r--r-- | scene/main/node.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index b1ba9de85c..0876c30dd1 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -41,10 +41,6 @@ #include "scene/scene_string_names.h" #include "viewport.h" -#ifdef TOOLS_ENABLED -#include "editor/editor_settings.h" -#endif - #include <stdint.h> VARIANT_ENUM_CAST(Node::ProcessMode); @@ -2536,17 +2532,11 @@ NodePath Node::get_import_path() const { } static void _add_nodes_to_options(const Node *p_base, const Node *p_node, List<String> *r_options) { -#ifdef TOOLS_ENABLED - const String quote_style = EDITOR_GET("text_editor/completion/use_single_quotes") ? "'" : "\""; -#else - const String quote_style = "\""; -#endif - if (p_node != p_base && !p_node->get_owner()) { return; } String n = p_base->get_path_to(p_node); - r_options->push_back(n.quote(quote_style)); + r_options->push_back(n.quote()); for (int i = 0; i < p_node->get_child_count(); i++) { _add_nodes_to_options(p_base, p_node->get_child(i), r_options); } |
