INNER CODE UNIT · C++

edits_path

oxylusengine/Oxylus · OxylusEditor/src/Editor.cpp:443

    auto edits_path = sync_terrain_edits_asset(*scene->get_scene(), scene_path);
    auto edits_uuid = UUID{};
    if (!edits_path.empty()) {
      edits_uuid = scene->get_scene()->terrain_edits_ref;
    }

    auto& job_man = App::get_job_manager();
    job_man.push_job_name("Saving scene");
    job_man.submit(Job::create([scene, scene_path, edits_path, edits_uuid] {
      scene->get_scene()->save_to_file(scene_path);
      if (edits_uuid) {
        export_asset(App::mod<AssetManager>(), edits_uuid, edits_path);
      }
      scene->set_path(scene_path);
    }));
    job_man.pop_job_name();
  });
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…