mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-18 01:41:29 -06:00
Make OpenSpaceModule a properties::PropertyOwner so that it can own properties
Add properties owned by OpenSpaceModule to the global settings engine (closing #104)
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <openspace/engine/openspaceengine.h>
|
||||
#include <openspace/engine/configurationmanager.h>
|
||||
#include <openspace/engine/wrapper/windowwrapper.h>
|
||||
#include <openspace/util/openspacemodule.h>
|
||||
#include <openspace/scene/scene.h>
|
||||
|
||||
#include <ghoul/ghoul.h>
|
||||
@@ -45,7 +46,12 @@ void SettingsEngine::initialize() {
|
||||
initEyeSeparation();
|
||||
initSceneFiles();
|
||||
}
|
||||
|
||||
|
||||
void SettingsEngine::setModules(std::vector<OpenSpaceModule*> modules) {
|
||||
for (OpenSpaceModule* m : modules) {
|
||||
addPropertySubOwner(m);
|
||||
}
|
||||
}
|
||||
|
||||
void SettingsEngine::initEyeSeparation() {
|
||||
addProperty(_eyeSeparation);
|
||||
|
||||
Reference in New Issue
Block a user