Small live preview screen fix (#86)

This should prevent live preview screen from crashing the editor when minimized
This commit is contained in:
vovan2055
2023-08-28 17:03:55 +03:00
committed by GitHub
parent 0f16997520
commit 5efdf54923
@@ -102,6 +102,7 @@ public class LivePreviewScreen extends ScreenAdapter implements GestureDetector.
@Override
public void resize(int width, int height) {
if (width == 0 || height == 0) return;
super.resize(width, height);
sceneLoader.resize(width, height);
}