File tree 1 file changed +2
-1
lines changed
Source/RunActivity/Viewer3D
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)
2734
2734
/// </summary>
2735
2735
/// <param name="animationId">For stf files it is the node id, for gltf files it is the animation id.</param>
2736
2736
/// <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 ) ;
2738
2739
2739
2740
/// <summary>
2740
2741
/// Returns the parent animation id.
You can’t perform that action at this time.
0 commit comments