Remove implicit path conversions in the editor
Makes MSVC happy again
This commit is contained in:
parent
ee72736a30
commit
8572149697
1 changed files with 4 additions and 4 deletions
|
@ -131,7 +131,7 @@ void PrismEditor::setup_editor(Editor* editor) {
|
||||||
void PrismEditor::open_asset(const file::Path path) {
|
void PrismEditor::open_asset(const file::Path path) {
|
||||||
if(path.extension() == ".prefab") {
|
if(path.extension() == ".prefab") {
|
||||||
PrefabEditor* editor = new PrefabEditor();
|
PrefabEditor* editor = new PrefabEditor();
|
||||||
editor->path = path;
|
editor->path = path.string();
|
||||||
setup_editor(editor);
|
setup_editor(editor);
|
||||||
|
|
||||||
engine->create_empty_scene();
|
engine->create_empty_scene();
|
||||||
|
@ -144,7 +144,7 @@ void PrismEditor::open_asset(const file::Path path) {
|
||||||
editors.push_back(editor);
|
editors.push_back(editor);
|
||||||
} else if(path.extension() == ".scene") {
|
} else if(path.extension() == ".scene") {
|
||||||
SceneEditor* editor = new SceneEditor();
|
SceneEditor* editor = new SceneEditor();
|
||||||
editor->path = path;
|
editor->path = path.string();
|
||||||
setup_editor(editor);
|
setup_editor(editor);
|
||||||
|
|
||||||
editor->scene = engine->load_scene(path);
|
editor->scene = engine->load_scene(path);
|
||||||
|
@ -153,7 +153,7 @@ void PrismEditor::open_asset(const file::Path path) {
|
||||||
editors.push_back(editor);
|
editors.push_back(editor);
|
||||||
} else if(path.extension() == ".material") {
|
} else if(path.extension() == ".material") {
|
||||||
MaterialEditor* editor = new MaterialEditor();
|
MaterialEditor* editor = new MaterialEditor();
|
||||||
editor->path = path;
|
editor->path = path.string();
|
||||||
setup_editor(editor);
|
setup_editor(editor);
|
||||||
|
|
||||||
engine->create_empty_scene();
|
engine->create_empty_scene();
|
||||||
|
@ -169,7 +169,7 @@ void PrismEditor::open_asset(const file::Path path) {
|
||||||
editors.push_back(editor);
|
editors.push_back(editor);
|
||||||
} else if(path.extension() == ".json") {
|
} else if(path.extension() == ".json") {
|
||||||
UIEditor* editor = new UIEditor();
|
UIEditor* editor = new UIEditor();
|
||||||
editor->path = path;
|
editor->path = path.string();
|
||||||
setup_editor(editor);
|
setup_editor(editor);
|
||||||
|
|
||||||
editor->screen = engine->load_screen(path);
|
editor->screen = engine->load_screen(path);
|
||||||
|
|
Reference in a new issue