summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-01-11 23:34:44 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-01-11 23:34:44 +0100
commit1b0c408a1b4fd307f60ba3205a4dd64edde32477 (patch)
treec8b44203a667b6fbe885bb6f581950b6f1ca4af5
parenta77b786683483448d7a9d5d5a33b7ae19c9fa4d3 (diff)
parentbed76b38564d955aab8ac0c494f0b5532e38c63a (diff)
Merge pull request #3316 from Liangdi/master
Fix xml opt with XML_ENABLED macro
-rw-r--r--core/register_core_types.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/register_core_types.cpp b/core/register_core_types.cpp
index fb17156df4..d977ea3e18 100644
--- a/core/register_core_types.cpp
+++ b/core/register_core_types.cpp
@@ -101,10 +101,12 @@ void register_core_types() {
resource_loader_binary = memnew( ResourceFormatLoaderBinary );
ResourceLoader::add_resource_format_loader(resource_loader_binary);
+#ifdef XML_ENABLED
resource_saver_xml = memnew( ResourceFormatSaverXML );
ResourceSaver::add_resource_format_saver(resource_saver_xml);
resource_loader_xml = memnew( ResourceFormatLoaderXML );
ResourceLoader::add_resource_format_loader(resource_loader_xml);
+#endif
ObjectTypeDB::register_type<Object>();