Skip to content

Commit

Permalink
Make editor and test project interact with test scene
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianThijssen committed Dec 3, 2019
1 parent 76510ce commit 0fecf6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Editor/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ namespace Flux
{
void exportScene() {
SceneDesc scene;
SceneImporter::Status importStatus = SceneImporter::loadScene(Path("res/Ocean.json"), scene);
SceneImporter::Status importStatus = SceneImporter::loadScene(Path("res/TestScene.json"), scene);
if (importStatus == Editor::SceneImporter::Status::FileNotFound) {
std::cout << "Failed to find scene file.";
return;
}

SceneExporter::Status exportStatus = SceneExporter::exportScene(scene, Path("res/Ocean.scene"));
SceneExporter::Status exportStatus = SceneExporter::exportScene(scene, Path("res/TestScene.scene"));
if (exportStatus == Editor::SceneExporter::Status::Failure) {
std::cout << "Failed to export scene file.";
return;
Expand Down
2 changes: 1 addition & 1 deletion TestProject/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace Flux {
if (!created)
return;

bool loaded = SceneLoader::loadScene(Path("res/Ocean.scene"), currentScene);
bool loaded = SceneLoader::loadScene(Path("res/TestScene.scene"), currentScene);
if (!loaded)
return;

Expand Down

0 comments on commit 0fecf6e

Please sign in to comment.