forked from Dynamitos/Seele
Implementing basic asset serialization
This commit is contained in:
1 parent
9e1e4076f0
commit
48fa098546
82 files changed
+1834
-423
No files matched your search
@@ -29,9 +29,9 @@ void MaterialLoader::importAsset(MaterialImportArgs args)
|
||||
{
|
||||
std::filesystem::path assetPath = args.filePath.filename();
|
||||
assetPath.replace_extension("asset");
|
||||
PMaterialAsset asset = new MaterialAsset(assetPath.generic_string());
|
||||
PMaterialAsset asset = new MaterialAsset(args.importPath, assetPath.stem().string());
|
||||
asset->setStatus(Asset::Status::Loading);
|
||||
AssetRegistry::get().registerMaterial(asset, args.importPath);
|
||||
AssetRegistry::get().registerMaterial(asset);
|
||||
import(args, asset);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user