Showing the changes to interface/src/raypick/LaserPointerScriptingInterface.cpp (1 of 9 files). Show all
Unified · Split
| @@ -35,6 +35,16 @@ uint32_t LaserPointerScriptingInterface::createLaserPointer(const QVariant& prop · 34 unmodified lines | ||
| 35 | 35 | maxDistance = propertyMap["maxDistance"].toFloat(); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | + bool faceAvatar = false; | |
| 39 | + if (propertyMap["faceAvatar"].isValid()) { | |
| 40 | + faceAvatar = propertyMap["faceAvatar"].toBool(); | |
| 41 | + } | |
| 42 | + | |
| 43 | + bool centerEndY = true; | |
| 44 | + if (propertyMap["centerEndY"].isValid()) { | |
| 45 | + centerEndY = propertyMap["centerEndY"].toBool(); | |
| 46 | + } | |
| 47 | + | |
| 38 | 48 | bool enabled = false; |
| 39 | 49 | if (propertyMap["enabled"].isValid()) { |
| 40 | 50 | enabled = propertyMap["enabled"].toBool(); |
| @@ -94,7 +104,7 @@ uint32_t LaserPointerScriptingInterface::createLaserPointer(const QVariant& prop · 53 unmodified lines | ||
| 94 | 104 | dirOffset = vec3FromVariant(propertyMap["dirOffset"]); |
| 95 | 105 | } |
| 96 | 106 | |
| 97 | − return LaserPointerManager::getInstance().createLaserPointer(jointName, posOffset, dirOffset, filter, maxDistance, renderStates, enabled); | |
| 107 | + return LaserPointerManager::getInstance().createLaserPointer(jointName, posOffset, dirOffset, filter, maxDistance, renderStates, faceAvatar, centerEndY, enabled); | |
| 98 | 108 | } else if (propertyMap["position"].isValid()) { |
| 99 | 109 | glm::vec3 position = vec3FromVariant(propertyMap["position"]); |
| 100 | 110 | |
| @@ -103,7 +113,7 @@ uint32_t LaserPointerScriptingInterface::createLaserPointer(const QVariant& prop · 2 unmodified lines | ||
| 103 | 113 | direction = vec3FromVariant(propertyMap["direction"]); |
| 104 | 114 | } |
| 105 | 115 | |
| 106 | − return LaserPointerManager::getInstance().createLaserPointer(position, direction, filter, maxDistance, renderStates, enabled); | |
| 116 | + return LaserPointerManager::getInstance().createLaserPointer(position, direction, filter, maxDistance, renderStates, faceAvatar, centerEndY, enabled); | |
| 107 | 117 | } |
| 108 | 118 | |
| 109 | 119 | return 0; |