import MdlxBone from '../../../parsers/mdlx/bone' ; import MdxModel from './model' ; import GenericObject from './genericobject' ; import GeosetAnimation from './geosetanimation' ; /**
 * An MDX bone.
 */ export default class Bone extends GenericObject { geosetAnimation : GeosetAnimation ; constructor ( model , bone , index ) { super ( model , bone , index ) ; this . geosetAnimation = model . geosetAnimations [ bone . geosetAnimationId ] ; } override getVisibility ( out , sequence , frame , counter ) { if ( this . geosetAnimation ) { return this . geosetAnimation . getAlpha ( out , sequence , frame , counter ) ; } out [ 0 ] = 1 ; return - 1 ; } }