diff options
Diffstat (limited to 'src/Authoring/QT3DSIMP/Qt3DSImportLib/Qt3DSImport.h')
-rw-r--r-- | src/Authoring/QT3DSIMP/Qt3DSImportLib/Qt3DSImport.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Authoring/QT3DSIMP/Qt3DSImportLib/Qt3DSImport.h b/src/Authoring/QT3DSIMP/Qt3DSImportLib/Qt3DSImport.h index dbebe4dd..02bbbe2e 100644 --- a/src/Authoring/QT3DSIMP/Qt3DSImportLib/Qt3DSImport.h +++ b/src/Authoring/QT3DSIMP/Qt3DSImportLib/Qt3DSImport.h @@ -359,10 +359,9 @@ public: void AddAnimation(TCharPtr instance, const SImportPropertyDefinition<TDataType> &inProperty, QT3DSU32 subPropIndex, EAnimationType type, NVConstDataRef<QT3DSF32> values) { - std::tuple<bool, size_t> isAnimatableAndArity( - GetDatatypeAnimatableAndArity(TypeToDataType<TDataType>())); - if (std::get<0>(isAnimatableAndArity)) { - if (subPropIndex >= std::get<1>(isAnimatableAndArity)) { + size_t arity = getDatatypeAnimatableArity(TypeToDataType<TDataType>()); + if (arity) { + if (subPropIndex >= arity) { QT3DS_ASSERT(false); subPropIndex = 0; } |