Merge pull request #3883 from ms-maxvollmer/importer_fixes_followup

Follow up to PR #3787
This commit is contained in:
Kim Kulling
2021-05-25 16:27:32 +02:00
committed by GitHub
+1 -1
View File
@@ -1263,7 +1263,7 @@ aiMeshMorphAnim *CreateMeshMorphAnim(glTF2::Asset&, Node &node, AnimationSampler
static const float kMillisecondsFromSeconds = 1000.f;
if (nullptr != samplers.weight) {
if (samplers.weight && samplers.weight->input && samplers.weight->output) {
float *times = nullptr;
samplers.weight->input->ExtractData(times);
float *values = nullptr;