Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 23 files). Show all
Unified · Split
| @@ -196,16 +196,17 @@ QVector<EntityItemID> EntityScriptingInterface::findEntities(const glm::vec3& ce · 195 unmodified lines | ||
| 196 | 196 | return result; |
| 197 | 197 | } |
| 198 | 198 | |
| 199 | −RayToEntityIntersectionResult EntityScriptingInterface::findRayIntersection(const PickRay& ray) { | |
| 200 | − return findRayIntersectionWorker(ray, Octree::TryLock); | |
| 199 | +RayToEntityIntersectionResult EntityScriptingInterface::findRayIntersection(const PickRay& ray, bool precisionPicking) { | |
| 200 | + return findRayIntersectionWorker(ray, Octree::TryLock, precisionPicking); | |
| 201 | 201 | } |
| 202 | 202 | |
| 203 | −RayToEntityIntersectionResult EntityScriptingInterface::findRayIntersectionBlocking(const PickRay& ray) { | |
| 204 | − return findRayIntersectionWorker(ray, Octree::Lock); | |
| 203 | +RayToEntityIntersectionResult EntityScriptingInterface::findRayIntersectionBlocking(const PickRay& ray, bool precisionPicking) { | |
| 204 | + return findRayIntersectionWorker(ray, Octree::Lock, precisionPicking); | |
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | RayToEntityIntersectionResult EntityScriptingInterface::findRayIntersectionWorker(const PickRay& ray, |
| 208 | − Octree::lockType lockType) { | |
| 208 | + Octree::lockType lockType, | |
| 209 | + bool precisionPicking) { | |
| 209 | 210 | RayToEntityIntersectionResult result; |
| 210 | 211 | if (_entityTree) { |
| 211 | 212 | OctreeElement* element; |