mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 20:11:13 +02:00
Fixed Inverse logic and Cleanup
This commit is contained in:
parent
663e8514de
commit
0e3fc64f63
4 changed files with 5 additions and 6 deletions
|
@ -322,10 +322,10 @@ bool RenderableModelEntityItem::getAnimationFrame() {
|
|||
if (index >= 0) {
|
||||
glm::mat4 translationMat;
|
||||
|
||||
if (allowTranslation){
|
||||
if (!allowTranslation){
|
||||
translationMat = glm::translate(originalFbxJoints[index].translation);
|
||||
}
|
||||
else if (!allowTranslation && index < translations.size()) {
|
||||
else if (allowTranslation && index < translations.size()) {
|
||||
translationMat = glm::translate(translations[index]);
|
||||
}
|
||||
|
||||
|
|
|
@ -156,7 +156,6 @@ int ModelEntityItem::readEntitySubclassDataFromBuffer(const unsigned char* data,
|
|||
READ_ENTITY_PROPERTY(PROP_JOINT_TRANSLATIONS_SET, QVector<bool>, setJointTranslationsSet);
|
||||
READ_ENTITY_PROPERTY(PROP_JOINT_TRANSLATIONS, QVector<glm::vec3>, setJointTranslations);
|
||||
|
||||
|
||||
return bytesRead;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue