Fix the StaticScale to correctly request only a single double

This commit is contained in:
Alexander Bock
2016-08-30 01:27:11 +02:00
parent d7ea0f8ead
commit e4bc8385fb

View File

@@ -33,9 +33,9 @@ namespace openspace {
StaticScale::StaticScale(const ghoul::Dictionary& dictionary)
: _scaleValue(1.0)
{
const bool hasValue = dictionary.hasKeyAndValue<glm::vec3>(KeyValue);
bool hasValue = dictionary.hasKeyAndValue<double>(KeyValue);
if (hasValue) {
dictionary.getValue(KeyValue, _scaleValue);
_scaleValue = dictionary.value<double>(KeyValue);
}
}