mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-05 04:00:33 +02:00
Fix missing constructor initialization
This commit is contained in:
parent
aa9511c263
commit
c0419c61f4
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue