Archived
1
Fork 0

Remove implicit path conversions in the editor

Makes MSVC happy again
This commit is contained in:
redstrate 2020-12-28 15:44:54 -05:00
parent ee72736a30
commit 8572149697

View file

@ -131,7 +131,7 @@ void PrismEditor::setup_editor(Editor* editor) {
void PrismEditor::open_asset(const file::Path path) {
if(path.extension() == ".prefab") {
PrefabEditor* editor = new PrefabEditor();
editor->path = path;
editor->path = path.string();
setup_editor(editor);
engine->create_empty_scene();
@ -144,7 +144,7 @@ void PrismEditor::open_asset(const file::Path path) {
editors.push_back(editor);
} else if(path.extension() == ".scene") {
SceneEditor* editor = new SceneEditor();
editor->path = path;
editor->path = path.string();
setup_editor(editor);
editor->scene = engine->load_scene(path);
@ -153,7 +153,7 @@ void PrismEditor::open_asset(const file::Path path) {
editors.push_back(editor);
} else if(path.extension() == ".material") {
MaterialEditor* editor = new MaterialEditor();
editor->path = path;
editor->path = path.string();
setup_editor(editor);
engine->create_empty_scene();
@ -169,7 +169,7 @@ void PrismEditor::open_asset(const file::Path path) {
editors.push_back(editor);
} else if(path.extension() == ".json") {
UIEditor* editor = new UIEditor();
editor->path = path;
editor->path = path.string();
setup_editor(editor);
editor->screen = engine->load_screen(path);