summaryrefslogtreecommitdiffstats
path: root/src/render/jobs/raycastingjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/jobs/raycastingjob.cpp')
-rw-r--r--src/render/jobs/raycastingjob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/jobs/raycastingjob.cpp b/src/render/jobs/raycastingjob.cpp
index b6ebdad99..8757b68f3 100644
--- a/src/render/jobs/raycastingjob.cpp
+++ b/src/render/jobs/raycastingjob.cpp
@@ -293,7 +293,7 @@ void RayCastingJob::dispatchHits(RayCaster *rayCaster, const PickingUtils::HitLi
Entity *entity = m_manager->renderNodesManager()->lookupResource(sphereHit.m_entityId);
Vector3D localIntersection = sphereHit.m_intersection;
if (entity && entity->worldTransform())
- localIntersection = entity->worldTransform()->inverted() * localIntersection;
+ localIntersection = entity->worldTransform()->inverted().map(localIntersection);
QRayCasterHit::HitType hitType = QRayCasterHit::EntityHit;
switch (sphereHit.m_type) {