History

fix models with registrations other than 0,0,0

ZappoMan committed 11 years ago

Commit ae647d31 parent 0ccbb983 files · +27 −5Browse files

Showing the changes to libraries/entities/src/EntityTreeElement.cpp (1 of 3 files). Show all

Unified · Split

libraries/entities/src/EntityTreeElement.cpp+4−0
@@ -553,6 +553,8 @@ bool EntityTreeElement::findDetailedRayIntersection(const glm::vec3& origin, con · 552 unmodified lines
553553 face = localFace;
554554 *intersectedObject = (void*)entity;
555555 somethingIntersected = true;
556+ } else {
557+ qDebug() << " localDistance >= distance... TOO FAR AWAY";
556558 }
557559 }
558560 } else {
@@ -566,6 +568,8 @@ bool EntityTreeElement::findDetailedRayIntersection(const glm::vec3& origin, con · 7 unmodified lines
566568 face = localFace;
567569 *intersectedObject = (void*)entity;
568570 somethingIntersected = true;
571+ } else {
572+ qDebug() << " localDistance >= distance... TOO FAR AWAY";
569573 }
570574 }
571575 }