Only display commit hash text overlay if there is information available

Add version and commit information into a global property
This commit is contained in:
Alexander Bock
2017-08-31 11:37:22 -04:00
parent 0ceab49df7
commit c3825cc81e
4 changed files with 47 additions and 11 deletions
@@ -25,6 +25,7 @@
#ifndef __OPENSPACE_CORE___OPENSPACEENGINE___H__
#define __OPENSPACE_CORE___OPENSPACEENGINE___H__
#include <openspace/properties/stringproperty.h>
#include <openspace/util/keys.h>
#include <openspace/util/mouse.h>
@@ -204,6 +205,11 @@ private:
// Others
std::unique_ptr<properties::PropertyOwner> _globalPropertyNamespace;
struct {
properties::StringProperty versionString;
properties::StringProperty sourceControlInformation;
} _versionInformation;
bool _scheduledSceneSwitch;
std::string _scenePath;