Add define guards so that the messagebox only appears in editor builds
This commit is contained in:
@@ -8,12 +8,12 @@
|
||||
#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"
|
||||
#include "Engine/Graphics/PixelFormatExtensions.h"
|
||||
#if USE_EDITOR
|
||||
#include "Engine/Platform/MessageBox.h"
|
||||
#include "Engine/Graphics/GPUDevice.h"
|
||||
#endif
|
||||
#include "Engine/Utilities/AnsiPathTempFile.h"
|
||||
@@ -359,7 +359,9 @@ HRESULT LoadFromEXRFile(const StringView& path, DirectX::ScratchImage& image)
|
||||
free(pixels);
|
||||
return result;
|
||||
#else
|
||||
#if USE_EDITOR
|
||||
MessageBox::Show(TEXT("EXR format is not supported."), TEXT("Import warning"), MessageBoxButtons::OK, MessageBoxIcon::Warning);
|
||||
#endif
|
||||
LOG(Warning, "EXR format is not supported.");
|
||||
return E_FAIL;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user