Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -70,14 +70,14 @@ glm::mat4 HMDScriptingInterface::getWorldHMDMatrix() const { · 69 unmodified lines | |||
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | glm::vec3 HMDScriptingInterface::getPosition() const { | 72 | glm::vec3 HMDScriptingInterface::getPosition() const { |
| 73 | if (Application::getInstance()->getActiveDisplayPlugin()->isHmd()) { | 73 | if (qApp->getActiveDisplayPlugin()->isHmd()) { |
| 74 | return extractTranslation(getWorldHMDMatrix()); | 74 | return extractTranslation(getWorldHMDMatrix()); |
| 75 | } | 75 | } |
| 76 | return glm::vec3(); | 76 | return glm::vec3(); |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | glm::quat HMDScriptingInterface::getOrientation() const { | 79 | glm::quat HMDScriptingInterface::getOrientation() const { |
| 80 | if (Application::getInstance()->getActiveDisplayPlugin()->isHmd()) { | 80 | if (qApp->getActiveDisplayPlugin()->isHmd()) { |
| 81 | return glm::normalize(glm::quat_cast(getWorldHMDMatrix())); | 81 | return glm::normalize(glm::quat_cast(getWorldHMDMatrix())); |
| 82 | } | 82 | } |
| 83 | return glm::quat(); | 83 | return glm::quat(); |