Calculate head height based on model mesh rather than joints

This fixes the problem of some head models having display names
rendering through them.
This commit is contained in:
David Rowe 2015-03-14 09:47:47 -07:00
parent d6bf0f3bec
commit 08c95555dd

View file

@ -1013,7 +1013,7 @@ float Avatar::getSkeletonHeight() const {
}
float Avatar::getHeadHeight() const {
Extents extents = getHead()->getFaceModel().getBindExtents();
Extents extents = getHead()->getFaceModel().getMeshExtents();
if (!extents.isEmpty()) {
return extents.maximum.y - extents.minimum.y;
}