Merge pull request #4880 from krishty/fix-build-without-armaturepopulate-post-process
Fix Build Without ArmaturePopulate Post Process Steppull/4910/head
commit
d2d8b84f83
|
@ -1455,7 +1455,9 @@ static void copyBoneToSkeletonBone(aiMesh *mesh, aiBone *bone, aiSkeletonBone *s
|
||||||
skeletonBone->mWeights = bone->mWeights;
|
skeletonBone->mWeights = bone->mWeights;
|
||||||
skeletonBone->mOffsetMatrix = bone->mOffsetMatrix;
|
skeletonBone->mOffsetMatrix = bone->mOffsetMatrix;
|
||||||
skeletonBone->mMeshId = mesh;
|
skeletonBone->mMeshId = mesh;
|
||||||
|
#ifndef ASSIMP_BUILD_NO_ARMATUREPOPULATE_PROCESS
|
||||||
skeletonBone->mNode = bone->mNode;
|
skeletonBone->mNode = bone->mNode;
|
||||||
|
#endif
|
||||||
skeletonBone->mParent = -1;
|
skeletonBone->mParent = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -995,8 +995,10 @@ struct aiSkeletonBone {
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
aiSkeletonBone() :
|
aiSkeletonBone() :
|
||||||
mParent(-1),
|
mParent(-1),
|
||||||
|
#ifndef ASSIMP_BUILD_NO_ARMATUREPOPULATE_PROCESS
|
||||||
mArmature(nullptr),
|
mArmature(nullptr),
|
||||||
mNode(nullptr),
|
mNode(nullptr),
|
||||||
|
#endif
|
||||||
mNumnWeights(0),
|
mNumnWeights(0),
|
||||||
mMeshId(nullptr),
|
mMeshId(nullptr),
|
||||||
mWeights(nullptr),
|
mWeights(nullptr),
|
||||||
|
|
Loading…
Reference in New Issue