Skip viewport render if editor window is minimized (probably more fixes that can be applied similar to this)
This commit is contained in:
parent
3f3735ac7a
commit
4fd3e9c437
|
@ -1,5 +1,4 @@
|
||||||
#include "CEditorApplication.h"
|
#include "CEditorApplication.h"
|
||||||
#include "CEditorUpdateEvent.h"
|
|
||||||
#include "IEditor.h"
|
#include "IEditor.h"
|
||||||
#include "CBasicViewport.h"
|
#include "CBasicViewport.h"
|
||||||
#include <Common/CTimer.h>
|
#include <Common/CTimer.h>
|
||||||
|
@ -27,7 +26,7 @@ void CEditorApplication::TickEditors()
|
||||||
|
|
||||||
CBasicViewport *pViewport = pEditor->Viewport();
|
CBasicViewport *pViewport = pEditor->Viewport();
|
||||||
|
|
||||||
if (pViewport && pViewport->isVisible())
|
if (pViewport && pViewport->isVisible() && !pEditor->isMinimized())
|
||||||
{
|
{
|
||||||
pViewport->ProcessInput();
|
pViewport->ProcessInput();
|
||||||
pViewport->Render();
|
pViewport->Render();
|
||||||
|
|
Loading…
Reference in New Issue