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
553 face = localFace;553 face = localFace;
554 *intersectedObject = (void*)entity;554 *intersectedObject = (void*)entity;
555 somethingIntersected = true;555 somethingIntersected = true;
556 } else {
557 qDebug() << " localDistance >= distance... TOO FAR AWAY";
556 }558 }
557 }559 }
558 } else {560 } else {
@@ -566,6 +568,8 @@ bool EntityTreeElement::findDetailedRayIntersection(const glm::vec3& origin, con · 7 unmodified lines
566 face = localFace;568 face = localFace;
567 *intersectedObject = (void*)entity;569 *intersectedObject = (void*)entity;
568 somethingIntersected = true;570 somethingIntersected = true;
571 } else {
572 qDebug() << " localDistance >= distance... TOO FAR AWAY";
569 }573 }
570 }574 }
571 }575 }