Fixed problem exiting before addressing all tags. Added tags to renderable class.

This commit is contained in:
GPayne
2017-03-22 14:10:53 -06:00
parent 701489c969
commit 95f4b249b9
2 changed files with 12 additions and 3 deletions
+6
View File
@@ -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;