From bc9f21d7f8cc4c9f00ebcdc6c4be2ad435a86369 Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 16 Jun 2020 15:45:01 -0700 Subject: [PATCH] Revert "Fix loading levels saved with 2.2 or earlier" This reverts commit c2c06444531ec176626faff0caf212c33f26463e. The correct solution for this wasn't to set the whitespace mode to COLLAPSE_WHITESPACE. --- desktop_version/src/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index d112ba8e..d514c609 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -1659,7 +1659,7 @@ bool editorclass::load(std::string& _path) printf("Custom asset directory does not exist\n"); } - tinyxml2::XMLDocument doc(true, tinyxml2::COLLAPSE_WHITESPACE); + tinyxml2::XMLDocument doc; if (!FILESYSTEM_loadTiXml2Document(_path.c_str(), doc)) { printf("No level %s to load :(\n", _path.c_str());