Archived
1
Fork 0

Use new open_asset function to select scene in cutscene editor

This commit is contained in:
redstrate 2021-07-19 07:15:50 -04:00
parent b22447a931
commit 8015c52f78

View file

@ -208,7 +208,7 @@ void CutsceneEditor::drawUI() {
ImGui::SameLine();
if(ImGui::Button("Change scene")) {
platform::open_dialog(true, [](std::string path) {
open_asset<Scene>(AssetType::Scene, [](prism::path path) {
currentShot->scene = engine->load_scene(path);
});
}