Fix orientation being reset to 0,0,0,1

This commit is contained in:
Zander Otavka 2016-07-12 16:05:46 -07:00
parent bcee128de0
commit 87ba1ffeca

View file

@ -564,7 +564,7 @@ bool AddressManager::handleViewpoint(const QString& viewpointString, bool should
if (viewpointString[positionRegex.matchedLength() - 1] == QChar('/')
&& orientationRegex.indexIn(viewpointString, positionRegex.matchedLength() - 1) != -1) {
glm::quat newOrientation = glm::normalize(glm::quat(orientationRegex.cap(4).toFloat(),
newOrientation = glm::normalize(glm::quat(orientationRegex.cap(4).toFloat(),
orientationRegex.cap(1).toFloat(),
orientationRegex.cap(2).toFloat(),
orientationRegex.cap(3).toFloat()));