Prevent accessing nullpointers

pull/3883/head
Max Vollmer (Microsoft Havok) 2021-05-05 14:09:43 +01:00
parent 38df0f4376
commit 153b890b02
1 changed files with 1 additions and 1 deletions

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;