From e284fe67b835f8747ccb883557fc7856edb803a0 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 13 May 2022 19:43:46 +0200 Subject: [PATCH] Adapt file for skeleton unittest --- test/unit/utFBXImporterExporter.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/unit/utFBXImporterExporter.cpp b/test/unit/utFBXImporterExporter.cpp index 9b8f2fa0d..9fa293aaf 100644 --- a/test/unit/utFBXImporterExporter.cpp +++ b/test/unit/utFBXImporterExporter.cpp @@ -423,3 +423,10 @@ TEST_F(utFBXImporterExporter, importMaxPbrMaterialsSpecularGloss) { ASSERT_EQ(mat->Get("$raw.3dsMax|main|emit_color", aiTextureType_NONE, 0, emitColor), aiReturn_SUCCESS); EXPECT_EQ(emitColor, aiColor4D(1, 0, 1, 1)); } + +TEST_F(utFBXImporterExporter, importSkeletonTest) { + Assimp::Importer importer; + const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/FBX/animation_with_skeleton.fbx", aiProcess_ValidateDataStructure); + ASSERT_NE(nullptr, scene); + ASSERT_TRUE(scene->mRootNode); +}