Check for existing asset meta in browser file before sendin asset id
This commit is contained in:
parent
5623115e29
commit
8e9854a130
|
@ -441,6 +441,10 @@ namespace SHADE
|
||||||
if (genMeta)
|
if (genMeta)
|
||||||
{
|
{
|
||||||
GenerateNewMeta(newPath);
|
GenerateNewMeta(newPath);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//send event here
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -233,7 +233,7 @@ namespace SHADE
|
||||||
{
|
{
|
||||||
if(ImGui::Selectable("Compile"))
|
if(ImGui::Selectable("Compile"))
|
||||||
{
|
{
|
||||||
SHAssetManager::CompileAsset(file.path, !file.compiled, file.assetMeta->id);
|
SHAssetManager::CompileAsset(file.path, !file.compiled, file.assetMeta ? file.assetMeta->id : 0);
|
||||||
QueueRefresh();
|
QueueRefresh();
|
||||||
}
|
}
|
||||||
ImGui::EndPopup();
|
ImGui::EndPopup();
|
||||||
|
|
Loading…
Reference in New Issue