mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-17 17:31:10 -06:00
Add SceneLicense information to the Scene
Add documentation generator to SceneLicense
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
#include <openspace/scene/scene.h>
|
||||
#include <openspace/scene/rotation.h>
|
||||
#include <openspace/scene/scale.h>
|
||||
#include <openspace/scene/scenelicense.h>
|
||||
#include <openspace/scene/translation.h>
|
||||
#include <openspace/scene/scenemanager.h>
|
||||
|
||||
@@ -645,6 +646,15 @@ void OpenSpaceEngine::loadScene(const std::string& scenePath) {
|
||||
);
|
||||
}
|
||||
|
||||
if (configurationManager().hasKey(ConfigurationManager::KeySceneLicenseDocumentation))
|
||||
{
|
||||
scene->writeSceneLicenseDocumentation(
|
||||
absPath(configurationManager().value<std::string>(
|
||||
ConfigurationManager::KeySceneLicenseDocumentation
|
||||
))
|
||||
);
|
||||
}
|
||||
|
||||
// If a PropertyDocumentationFile was specified, generate it now.
|
||||
if (configurationManager().hasKey(ConfigurationManager::KeyPropertyDocumentation)) {
|
||||
scene->writeDocumentation(
|
||||
|
||||
Reference in New Issue
Block a user