Merge branch 'master' into master
commit
baf3f00644
|
@ -53,7 +53,7 @@ IF(ASSIMP_HUNTER_ENABLED)
|
||||||
add_definitions(-DASSIMP_USE_HUNTER)
|
add_definitions(-DASSIMP_USE_HUNTER)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
PROJECT( Assimp VERSION 5.0.1 )
|
PROJECT(Assimp VERSION 5.1.0)
|
||||||
|
|
||||||
# All supported options ###############################################
|
# All supported options ###############################################
|
||||||
|
|
||||||
|
|
|
@ -98,6 +98,7 @@ struct aiVectorKey {
|
||||||
bool operator<(const aiVectorKey &rhs) const {
|
bool operator<(const aiVectorKey &rhs) const {
|
||||||
return mTime < rhs.mTime;
|
return mTime < rhs.mTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator>(const aiVectorKey &rhs) const {
|
bool operator>(const aiVectorKey &rhs) const {
|
||||||
return mTime > rhs.mTime;
|
return mTime > rhs.mTime;
|
||||||
}
|
}
|
||||||
|
@ -131,6 +132,7 @@ struct aiQuatKey {
|
||||||
bool operator==(const aiQuatKey &rhs) const {
|
bool operator==(const aiQuatKey &rhs) const {
|
||||||
return rhs.mValue == this->mValue;
|
return rhs.mValue == this->mValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator!=(const aiQuatKey &rhs) const {
|
bool operator!=(const aiQuatKey &rhs) const {
|
||||||
return rhs.mValue != this->mValue;
|
return rhs.mValue != this->mValue;
|
||||||
}
|
}
|
||||||
|
@ -139,6 +141,7 @@ struct aiQuatKey {
|
||||||
bool operator<(const aiQuatKey &rhs) const {
|
bool operator<(const aiQuatKey &rhs) const {
|
||||||
return mTime < rhs.mTime;
|
return mTime < rhs.mTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator>(const aiQuatKey &rhs) const {
|
bool operator>(const aiQuatKey &rhs) const {
|
||||||
return mTime > rhs.mTime;
|
return mTime > rhs.mTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -300,6 +300,10 @@ struct aiBone {
|
||||||
aiBone() AI_NO_EXCEPT
|
aiBone() AI_NO_EXCEPT
|
||||||
: mName(),
|
: mName(),
|
||||||
mNumWeights(0),
|
mNumWeights(0),
|
||||||
|
#ifndef ASSIMP_BUILD_NO_ARMATUREPOPULATE_PROCESS
|
||||||
|
mArmature(nullptr),
|
||||||
|
mNode(nullptr),
|
||||||
|
#endif
|
||||||
mWeights(nullptr),
|
mWeights(nullptr),
|
||||||
mOffsetMatrix() {
|
mOffsetMatrix() {
|
||||||
// empty
|
// empty
|
||||||
|
@ -309,6 +313,10 @@ struct aiBone {
|
||||||
aiBone(const aiBone &other) :
|
aiBone(const aiBone &other) :
|
||||||
mName(other.mName),
|
mName(other.mName),
|
||||||
mNumWeights(other.mNumWeights),
|
mNumWeights(other.mNumWeights),
|
||||||
|
#ifndef ASSIMP_BUILD_NO_ARMATUREPOPULATE_PROCESS
|
||||||
|
mArmature(nullptr),
|
||||||
|
mNode(nullptr),
|
||||||
|
#endif
|
||||||
mWeights(nullptr),
|
mWeights(nullptr),
|
||||||
mOffsetMatrix(other.mOffsetMatrix) {
|
mOffsetMatrix(other.mOffsetMatrix) {
|
||||||
if (other.mWeights && other.mNumWeights) {
|
if (other.mWeights && other.mNumWeights) {
|
||||||
|
|
|
@ -44,16 +44,16 @@ class utVersion : public ::testing::Test {
|
||||||
};
|
};
|
||||||
|
|
||||||
TEST_F( utVersion, aiGetLegalStringTest ) {
|
TEST_F( utVersion, aiGetLegalStringTest ) {
|
||||||
const char *lv( aiGetLegalString() );
|
const char *lv = aiGetLegalString();
|
||||||
EXPECT_NE( lv, nullptr );
|
EXPECT_NE( lv, nullptr );
|
||||||
std::string text( lv );
|
std::string text( lv );
|
||||||
|
|
||||||
size_t pos( text.find( std::string( "2021" ) ) );
|
size_t pos = text.find(std::string("2021"));
|
||||||
EXPECT_NE( pos, std::string::npos );
|
EXPECT_NE( pos, std::string::npos );
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F( utVersion, aiGetVersionMinorTest ) {
|
TEST_F( utVersion, aiGetVersionMinorTest ) {
|
||||||
EXPECT_EQ( aiGetVersionMinor(), 0U );
|
EXPECT_EQ( aiGetVersionMinor(), 1U );
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F( utVersion, aiGetVersionMajorTest ) {
|
TEST_F( utVersion, aiGetVersionMajorTest ) {
|
||||||
|
|
Loading…
Reference in New Issue