Add messagebox to windows import too
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "Engine/Platform/File.h"
|
||||
#include "Engine/Platform/CriticalSection.h"
|
||||
#include "Engine/Platform/ConditionVariable.h"
|
||||
#include "Engine/Platform/MessageBox.h"
|
||||
#include "Engine/Graphics/RenderTools.h"
|
||||
#include "Engine/Graphics/Async/GPUTask.h"
|
||||
#include "Engine/Graphics/Textures/TextureData.h"
|
||||
@@ -358,6 +359,7 @@ HRESULT LoadFromEXRFile(const StringView& path, DirectX::ScratchImage& image)
|
||||
free(pixels);
|
||||
return result;
|
||||
#else
|
||||
MessageBox::Show(TEXT("EXR format is not supported."), TEXT("Import warning"), MessageBoxButtons::OK, MessageBoxIcon::Warning);
|
||||
LOG(Warning, "EXR format is not supported.");
|
||||
return E_FAIL;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user