diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-06-21 15:11:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-21 15:11:23 +0200 |
commit | fdfbaf9f0f3fb8cbf640f0d409257039c14f314f (patch) | |
tree | e21b38e1662c556a8a4eebcbde1e93d078ba84c3 | |
parent | 40c360b8703449bb6a3299878600fab45abf9f86 (diff) | |
parent | 514624c58e45668c138640234a0adaaa49c3e68d (diff) |
Merge pull request #62198 from Calinou/text-resource-remove-extraneous-spaces
Remove spaces in `SubResource()/ExtResource/Resource()` in text resources
-rw-r--r-- | scene/resources/resource_format_text.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/resources/resource_format_text.cpp b/scene/resources/resource_format_text.cpp index 9d586c6f03..0320585b5a 100644 --- a/scene/resources/resource_format_text.cpp +++ b/scene/resources/resource_format_text.cpp @@ -1564,17 +1564,17 @@ String ResourceFormatSaverTextInstance::_write_resources(void *ud, const Ref<Res String ResourceFormatSaverTextInstance::_write_resource(const Ref<Resource> &res) { if (external_resources.has(res)) { - return "ExtResource( \"" + external_resources[res] + "\" )"; + return "ExtResource(\"" + external_resources[res] + "\")"; } else { if (internal_resources.has(res)) { - return "SubResource( \"" + internal_resources[res] + "\" )"; + return "SubResource(\"" + internal_resources[res] + "\")"; } else if (!res->is_built_in()) { if (res->get_path() == local_path) { //circular reference attempt return "null"; } //external resource String path = relative_paths ? local_path.path_to_file(res->get_path()) : res->get_path(); - return "Resource( \"" + path + "\" )"; + return "Resource(\"" + path + "\")"; } else { ERR_FAIL_V_MSG("null", "Resource was not pre cached for the resource section, bug?"); //internal resource |