Update mesh.h
- Add initialization for armature attributes. - closes https://github.com/assimp/assimp/issues/4158pull/4167/head
parent
c01d33a77a
commit
5fd2a5559c
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue