mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 12:54:30 +02:00
Merge pull request #1029 from HifiExperiments/offsetFix
Fix for offset soft attachments
This commit is contained in:
commit
d628b4f976
2 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,6 @@ SkeletonModel::SkeletonModel(Avatar* owningAvatar, QObject* parent) :
|
||||||
{
|
{
|
||||||
// SkeletonModels, and by extention Avatars, use Dual Quaternion skinning.
|
// SkeletonModels, and by extention Avatars, use Dual Quaternion skinning.
|
||||||
_useDualQuaternionSkinning = true;
|
_useDualQuaternionSkinning = true;
|
||||||
_forceOffset = true;
|
|
||||||
|
|
||||||
// Avatars all cast shadow
|
// Avatars all cast shadow
|
||||||
setCanCastShadow(true);
|
setCanCastShadow(true);
|
||||||
|
|
|
@ -151,6 +151,7 @@ void Model::setOffset(const glm::vec3& offset) {
|
||||||
// if someone manually sets our offset, then we are no longer snapped to center
|
// if someone manually sets our offset, then we are no longer snapped to center
|
||||||
_snapModelToRegistrationPoint = false;
|
_snapModelToRegistrationPoint = false;
|
||||||
_snappedToRegistrationPoint = false;
|
_snappedToRegistrationPoint = false;
|
||||||
|
_forceOffset = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Model::calculateTextureInfo() {
|
void Model::calculateTextureInfo() {
|
||||||
|
|
Loading…
Reference in a new issue