mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-28 06:49:32 -05:00
Fixed problem exiting before addressing all tags. Added tags to renderable class.
This commit is contained in:
@@ -41,6 +41,8 @@ namespace {
|
||||
const char* keyStart = "StartTime";
|
||||
const char* keyEnd = "EndTime";
|
||||
const char* KeyType = "Type";
|
||||
|
||||
const char* keyTag = "Tag";
|
||||
}
|
||||
|
||||
namespace openspace {
|
||||
@@ -111,6 +113,10 @@ Renderable::Renderable(const ghoul::Dictionary& dictionary)
|
||||
|
||||
dictionary.getValue(keyStart, _startTime);
|
||||
dictionary.getValue(keyEnd, _endTime);
|
||||
std::string tagName;
|
||||
dictionary.getValue(keyTag, tagName);
|
||||
if (! tagName.empty())
|
||||
addTag(tagName);
|
||||
|
||||
if (_startTime != "" && _endTime != "") {
|
||||
_hasTimeInterval = true;
|
||||
|
||||
Reference in New Issue
Block a user