Update README.md

This commit is contained in:
2023-05-31 01:34:24 +02:00
parent fcf513bacc
commit 28e66a6ac2
13 changed files with 1063 additions and 1037 deletions

View File

@@ -84,12 +84,9 @@ impl ExtensionLayer for ResourceLoaderLayer {
self.datafile = Some(Gd::<DatafileLoader>::with_base(DatafileLoader::init));
self.editor_pck = Some(Gd::<EditorPck>::with_base(|base| EditorPck { base }));
if Engine::singleton().is_editor_hint() {
ResourceLoader::singleton().add_resource_format_loader(
self.editor_pck.as_ref().unwrap().share().upcast(),
true,
)
}
// if Engine::singleton().is_editor_hint() {
ResourceLoader::singleton()
.add_resource_format_loader(self.editor_pck.as_ref().unwrap().share().upcast(), true);
ResourceLoader::singleton()
.add_resource_format_loader(self.datafile.as_ref().unwrap().share().upcast(), true);