can now load models through model panel

This commit is contained in:
a.pilote
2022-07-16 15:29:03 -04:00
parent de3434703d
commit 7d9e5b07b5
2 changed files with 11 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ void EditorSelectionPanel::ResolveFile(Ref<Nuake::File> file)
if (currentFile->GetExtension() == ".material")
{
Ref<Material> material = ResourceLoader::LoadResource(currentFile->GetRelativePath());
Ref<Material> material = ResourceLoader::LoadMaterial(currentFile->GetRelativePath());
selectedResource = material;
}
}