------------------------------------------------------------------------------
| 937 | |
| 938 | //------------------------------------------------------------------------------ |
| 939 | void vtkGLTFReader::DisableAnimation(vtkIdType animationIndex) |
| 940 | { |
| 941 | if (this->AnimationSelection == nullptr) |
| 942 | { |
| 943 | vtkErrorMacro("Error accessing animations: model is not loaded yet"); |
| 944 | return; |
| 945 | } |
| 946 | if (animationIndex < 0 || animationIndex >= this->AnimationSelection->GetNumberOfArrays()) |
| 947 | { |
| 948 | vtkErrorMacro("Out of range animation index"); |
| 949 | return; |
| 950 | } |
| 951 | auto name = this->AnimationSelection->GetArrayName(animationIndex); |
| 952 | this->AnimationSelection->DisableArray(name); |
| 953 | this->Modified(); |
| 954 | } |
| 955 | |
| 956 | //------------------------------------------------------------------------------ |
| 957 | bool vtkGLTFReader::IsAnimationEnabled(vtkIdType animationIndex) |
nothing calls this directly
no test coverage detected