----------------------------------------------------------------------------
| 977 | |
| 978 | //---------------------------------------------------------------------------- |
| 979 | bool vtkGLTFImporter::UpdateAtTimeValue(double timeValue) |
| 980 | { |
| 981 | for (int animationId = 0; animationId < this->GetNumberOfAnimations(); animationId++) |
| 982 | { |
| 983 | if (this->EnabledAnimations[animationId]) |
| 984 | { |
| 985 | if (!this->Loader->ApplyAnimation( |
| 986 | static_cast<float>(timeValue), animationId, !this->GetInterpolateBetweenTimeSteps())) |
| 987 | { |
| 988 | vtkErrorMacro("Error applying animation"); |
| 989 | return false; |
| 990 | } |
| 991 | } |
| 992 | } |
| 993 | this->Loader->BuildGlobalTransforms(); |
| 994 | |
| 995 | this->ImportCameras(this->Renderer); |
| 996 | |
| 997 | this->ApplySkinningMorphing(); |
| 998 | |
| 999 | return this->GetUpdateStatus() == vtkImporter::UpdateStatusEnum::SUCCESS; |
| 1000 | } |
| 1001 | |
| 1002 | //---------------------------------------------------------------------------- |
| 1003 | void vtkGLTFImporter::ApplySkinningMorphing() |