mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-24 13:09:22 -06:00
One Property Tree (#500)
* Organize properties in one single property tree * Update scenes to work with one property tree. Fix documentation issues.
This commit is contained in:
@@ -42,6 +42,10 @@ namespace {
|
||||
|
||||
namespace openspace {
|
||||
|
||||
ModuleEngine::ModuleEngine()
|
||||
: properties::PropertyOwner({"Modules"})
|
||||
{}
|
||||
|
||||
void ModuleEngine::initialize(const ghoul::Dictionary& moduleConfigurations) {
|
||||
for (OpenSpaceModule* m : AllModules()) {
|
||||
const std::string name = m->name();
|
||||
@@ -84,6 +88,7 @@ void ModuleEngine::registerModule(std::unique_ptr<OpenSpaceModule> m,
|
||||
|
||||
LDEBUG("Registering module '" << m->name() << "'");
|
||||
m->initialize(this, configuration);
|
||||
addPropertySubOwner(m.get());
|
||||
LDEBUG("Registered module '" << m->name() << "'");
|
||||
_modules.push_back(std::move(m));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user