mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #3316 from Liangdi/master
Fix xml opt with XML_ENABLED macro
This commit is contained in:
commit
1b0c408a1b
@ -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>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user