Fix missing constructor initialization

This commit is contained in:
David Rowe 2014-09-26 09:15:17 -07:00
parent aa9511c263
commit c0419c61f4

View file

@ -27,7 +27,8 @@ SkeletonModel::SkeletonModel(Avatar* owningAvatar, QObject* parent) :
_owningAvatar(owningAvatar),
_boundingShape(),
_boundingShapeLocalOffset(0.0f),
_ragdoll(NULL) {
_ragdoll(NULL),
_defaultEyeModelPosition(glm::vec3(0.f, 0.f, 0.f)) {
}
SkeletonModel::~SkeletonModel() {
@ -677,8 +678,6 @@ void SkeletonModel::buildShapes() {
_defaultEyeModelPosition = midEyePosition - rootModelPosition;
_defaultEyeModelPosition.z = -_defaultEyeModelPosition.z;
} else {
_defaultEyeModelPosition = glm::vec3(0.f, 0.f, 0.f);
}
// While the shapes are in their default position we disable collisions between