FBX: Use C++11 range-based for loop
parent
8566b9aa90
commit
c7c756d344
|
@ -1062,8 +1062,8 @@ void Converter::GenerateTransformationNodeChain( const Model& model,
|
||||||
|
|
||||||
nd->mName.Set( name );
|
nd->mName.Set( name );
|
||||||
|
|
||||||
for ( size_t i = 0; i < TransformationComp_MAXIMUM; ++i ) {
|
for (const auto &transform : chain) {
|
||||||
nd->mTransformation = nd->mTransformation * chain[ i ];
|
nd->mTransformation = nd->mTransformation * transform;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -269,8 +269,8 @@ Document::Document(const Parser& parser, const ImportSettings& settings)
|
||||||
, parser(parser)
|
, parser(parser)
|
||||||
{
|
{
|
||||||
// Cannot use array default initialization syntax because vc8 fails on it
|
// Cannot use array default initialization syntax because vc8 fails on it
|
||||||
for (unsigned int i = 0; i < sizeof(creationTimeStamp) / sizeof(creationTimeStamp[0]); ++i) {
|
for (auto &timeStamp : creationTimeStamp) {
|
||||||
creationTimeStamp[i] = 0;
|
timeStamp = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReadHeader();
|
ReadHeader();
|
||||||
|
|
Loading…
Reference in New Issue