------------------------------------------------------------------------------
| 919 | |
| 920 | //------------------------------------------------------------------------------ |
| 921 | void vtkGLTFReader::EnableAnimation(vtkIdType animationIndex) |
| 922 | { |
| 923 | if (this->AnimationSelection == nullptr) |
| 924 | { |
| 925 | vtkErrorMacro("Error accessing animations: model is not loaded yet"); |
| 926 | return; |
| 927 | } |
| 928 | if (animationIndex < 0 || animationIndex >= this->AnimationSelection->GetNumberOfArrays()) |
| 929 | { |
| 930 | vtkErrorMacro("Out of range animation index"); |
| 931 | return; |
| 932 | } |
| 933 | auto name = this->AnimationSelection->GetArrayName(animationIndex); |
| 934 | this->AnimationSelection->EnableArray(name); |
| 935 | this->Modified(); |
| 936 | } |
| 937 | |
| 938 | //------------------------------------------------------------------------------ |
| 939 | void vtkGLTFReader::DisableAnimation(vtkIdType animationIndex) |