Merge pull request #4167 from assimp/kimkulling-fix_uninitialized_attribs_issue-4158
Update anim.hpull/4165/head^2
commit
d4755648b4
|
@ -98,6 +98,7 @@ struct aiVectorKey {
|
|||
bool operator<(const aiVectorKey &rhs) const {
|
||||
return mTime < rhs.mTime;
|
||||
}
|
||||
|
||||
bool operator>(const aiVectorKey &rhs) const {
|
||||
return mTime > rhs.mTime;
|
||||
}
|
||||
|
@ -131,6 +132,7 @@ struct aiQuatKey {
|
|||
bool operator==(const aiQuatKey &rhs) const {
|
||||
return rhs.mValue == this->mValue;
|
||||
}
|
||||
|
||||
bool operator!=(const aiQuatKey &rhs) const {
|
||||
return rhs.mValue != this->mValue;
|
||||
}
|
||||
|
@ -139,6 +141,7 @@ struct aiQuatKey {
|
|||
bool operator<(const aiQuatKey &rhs) const {
|
||||
return mTime < rhs.mTime;
|
||||
}
|
||||
|
||||
bool operator>(const aiQuatKey &rhs) const {
|
||||
return mTime > rhs.mTime;
|
||||
}
|
||||
|
|
|
@ -300,6 +300,10 @@ struct aiBone {
|
|||
aiBone() AI_NO_EXCEPT
|
||||
: mName(),
|
||||
mNumWeights(0),
|
||||
#ifndef ASSIMP_BUILD_NO_ARMATUREPOPULATE_PROCESS
|
||||
mArmature(nullptr),
|
||||
mNode(nullptr),
|
||||
#endif
|
||||
mWeights(nullptr),
|
||||
mOffsetMatrix() {
|
||||
// empty
|
||||
|
@ -309,6 +313,10 @@ struct aiBone {
|
|||
aiBone(const aiBone &other) :
|
||||
mName(other.mName),
|
||||
mNumWeights(other.mNumWeights),
|
||||
#ifndef ASSIMP_BUILD_NO_ARMATUREPOPULATE_PROCESS
|
||||
mArmature(nullptr),
|
||||
mNode(nullptr),
|
||||
#endif
|
||||
mWeights(nullptr),
|
||||
mOffsetMatrix(other.mOffsetMatrix) {
|
||||
if (other.mWeights && other.mNumWeights) {
|
||||
|
|
Loading…
Reference in New Issue