From 5315af05a3f750e071d91fb0b040671487a85d50 Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Sat, 21 Nov 2015 15:39:34 +0100 Subject: [PATCH] LP-30 fix minor OSGSky date issue --- ground/gcs/src/libs/osgearth/osgQtQuick/OSGSkyNode.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ground/gcs/src/libs/osgearth/osgQtQuick/OSGSkyNode.cpp b/ground/gcs/src/libs/osgearth/osgQtQuick/OSGSkyNode.cpp index 95b2bc76d..80f314da3 100644 --- a/ground/gcs/src/libs/osgearth/osgQtQuick/OSGSkyNode.cpp +++ b/ground/gcs/src/libs/osgearth/osgQtQuick/OSGSkyNode.cpp @@ -43,8 +43,11 @@ struct OSGSkyNode::Hidden : public QObject { Q_OBJECT public: - Hidden(OSGSkyNode *parent) : QObject(parent), self(parent), sceneData(NULL), sunLightEnabled(true), dateTime(), minimumAmbientLight(0.03) - {} + Hidden(OSGSkyNode *parent) : QObject(parent), + self(parent), sceneData(NULL), sunLightEnabled(true), minimumAmbientLight(0.03) + { + dateTime = QDateTime::currentDateTime(); + } ~Hidden() {}