File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Source/RunActivity/Viewer3D Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2734,7 +2734,8 @@ public virtual Matrix GetMatrixProduct(int iNode)
27342734 /// </summary>
27352735 /// <param name="animationId">For stf files it is the node id, for gltf files it is the animation id.</param>
27362736 /// <returns>true if there is no internal seqence defined in the shape.</returns>
2737- public virtual bool IsAnimationArticulation ( int animationId ) => Animations ? . FirstOrDefault ( ) ? . anim_nodes ? . ElementAtOrDefault ( animationId ) ? . controllers . Count == 0 ;
2737+ public virtual bool IsAnimationArticulation ( int animationId ) =>
2738+ ! ( Animations ? . FirstOrDefault ( ) ? . anim_nodes is anim_nodes a && a . Count > animationId && a . ElementAtOrDefault ( animationId ) ? . controllers is controllers c && c . Count > 0 ) ;
27382739
27392740 /// <summary>
27402741 /// Returns the parent animation id.
You can’t perform that action at this time.
0 commit comments