/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/Scene/EditorPluginScene/Baking/BakeSceneProxyOp.cpp
32 строки
1 KB
Jan Krassnigg
Renamed ezStringBuilder::Format to SetFormat (#1174)
21 янв 2024, 21:58
Не верифицирован
21 янв 2024, 21:58
90bfaac
Код
Авторство
О чём код?
#include <EditorPluginScene/EditorPluginScenePCH.h> #include <EditorFramework/EditorApp/EditorApp.moc.h> #include <EditorPluginScene/Baking/BakeSceneProxyOp.h> // clang-format off EZ_BEGIN_DYNAMIC_REFLECTED_TYPE(ezLongOpProxy_BakeScene, 1, ezRTTIDefaultAllocator<ezLongOpProxy_BakeScene>); EZ_END_DYNAMIC_REFLECTED_TYPE; // clang-format on void ezLongOpProxy_BakeScene::InitializeRegistered(const ezUuid& documentGuid, const ezUuid& componentGuid) { m_DocumentGuid = documentGuid; m_ComponentGuid = componentGuid; } void ezLongOpProxy_BakeScene::GetReplicationInfo(ezStringBuilder& out_sReplicationOpType, ezStreamWriter& ref_description) { out_sReplicationOpType = "ezLongOpWorker_BakeScene"; ezStringBuilder sOutputPath; sOutputPath.SetFormat(":project/AssetCache/Generated/{0}", m_ComponentGuid); ref_description << sOutputPath; } void ezLongOpProxy_BakeScene::Finalize(ezResult result, const ezDataBuffer& resultData) { if (result.Succeeded()) { ezQtEditorApp::GetSingleton()->ReloadEngineResources(); } }