Fixed build warnings on MSVC14 x64 in the LWO format sources.
parent
4df18f93ea
commit
2c93e29dcc
|
@ -565,7 +565,7 @@ void AnimResolver::ExtractAnimChannel(aiNodeAnim** out, unsigned int flags /*= 0
|
||||||
std::vector<aiVectorKey> keys;
|
std::vector<aiVectorKey> keys;
|
||||||
GetKeys(keys,trans_x,trans_y,trans_z,flags);
|
GetKeys(keys,trans_x,trans_y,trans_z,flags);
|
||||||
|
|
||||||
anim->mPositionKeys = new aiVectorKey[ anim->mNumPositionKeys = keys.size() ];
|
anim->mPositionKeys = new aiVectorKey[ anim->mNumPositionKeys = static_cast<unsigned int>(keys.size()) ];
|
||||||
std::copy(keys.begin(),keys.end(),anim->mPositionKeys);
|
std::copy(keys.begin(),keys.end(),anim->mPositionKeys);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -574,7 +574,7 @@ void AnimResolver::ExtractAnimChannel(aiNodeAnim** out, unsigned int flags /*= 0
|
||||||
std::vector<aiVectorKey> keys;
|
std::vector<aiVectorKey> keys;
|
||||||
GetKeys(keys,rotat_x,rotat_y,rotat_z,flags);
|
GetKeys(keys,rotat_x,rotat_y,rotat_z,flags);
|
||||||
|
|
||||||
anim->mRotationKeys = new aiQuatKey[ anim->mNumRotationKeys = keys.size() ];
|
anim->mRotationKeys = new aiQuatKey[ anim->mNumRotationKeys = static_cast<unsigned int>(keys.size()) ];
|
||||||
|
|
||||||
// convert heading, pitch, bank to quaternion
|
// convert heading, pitch, bank to quaternion
|
||||||
// mValue.x=Heading=Rot(Y), mValue.y=Pitch=Rot(X), mValue.z=Bank=Rot(Z)
|
// mValue.x=Heading=Rot(Y), mValue.y=Pitch=Rot(X), mValue.z=Bank=Rot(Z)
|
||||||
|
@ -594,7 +594,7 @@ void AnimResolver::ExtractAnimChannel(aiNodeAnim** out, unsigned int flags /*= 0
|
||||||
std::vector<aiVectorKey> keys;
|
std::vector<aiVectorKey> keys;
|
||||||
GetKeys(keys,scale_x,scale_y,scale_z,flags);
|
GetKeys(keys,scale_x,scale_y,scale_z,flags);
|
||||||
|
|
||||||
anim->mScalingKeys = new aiVectorKey[ anim->mNumScalingKeys = keys.size() ];
|
anim->mScalingKeys = new aiVectorKey[ anim->mNumScalingKeys = static_cast<unsigned int>(keys.size()) ];
|
||||||
std::copy(keys.begin(),keys.end(),anim->mScalingKeys);
|
std::copy(keys.begin(),keys.end(),anim->mScalingKeys);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -426,7 +426,7 @@ void LWOImporter::InternReadFile( const std::string& pFile,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate nodes to render the mesh. Store the source layer in the mParent member of the nodes
|
// Generate nodes to render the mesh. Store the source layer in the mParent member of the nodes
|
||||||
unsigned int num = apcMeshes.size() - meshStart;
|
unsigned int num = static_cast<unsigned int>(apcMeshes.size() - meshStart);
|
||||||
if (layer.mName != "<LWODefault>" || num > 0) {
|
if (layer.mName != "<LWODefault>" || num > 0) {
|
||||||
aiNode* pcNode = new aiNode();
|
aiNode* pcNode = new aiNode();
|
||||||
apcNodes[layer.mIndex] = pcNode;
|
apcNodes[layer.mIndex] = pcNode;
|
||||||
|
|
Loading…
Reference in New Issue