diff --git a/tools/editor/src/prismeditor.cpp b/tools/editor/src/prismeditor.cpp index 77e4339..acf4496 100755 --- a/tools/editor/src/prismeditor.cpp +++ b/tools/editor/src/prismeditor.cpp @@ -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);