From f39c4b3f6c00cda35cfbdfde1b9d13b33897b1f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Sun, 6 Oct 2013 15:45:53 +0200 Subject: [PATCH] Temporary fix for preview renders stopping when window loses focus --- TODO | 2 +- src/editing/basepreview.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index f43432a..8dbf602 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,4 @@ Technology Preview 2 : -- Investigate the preview render threads dying. - Add initial terrain offset so that the (0,0) coordinates are above water. - Finalize lighting/clouds refactoring => Restore cloud lighting @@ -17,6 +16,7 @@ Technlogy Preview 3 : - FOCUS : Streamlining, with undo system - FOCUS : Vegetation - FOCUS : Night sky +- Implement copy-on-write on definitions (to avoid copying whole heightmaps for instance). - Alter aerial perspective using estimation of the amount of light left after cloud layers traversal. - Add a map preview to terrain editor. - Better time selection widget for atmosphere. diff --git a/src/editing/basepreview.cpp b/src/editing/basepreview.cpp index 43045dd..b5a8c3b 100644 --- a/src/editing/basepreview.cpp +++ b/src/editing/basepreview.cpp @@ -42,7 +42,7 @@ public: inline bool isOnFront() { - return _preview->isVisible() && _preview->window()->isActiveWindow(); + return _preview->isVisible();// && _preview->window()->isActiveWindow(); } bool isFrom(BasePreview* preview)