public void StopActiveAnimations(Model anim_model) { AnimComponent ac = anim_model.Components[anim_model.animComponentID] as AnimComponent; List <AnimData> ad_list = ac.getActiveAnimations(); foreach (AnimData ad in ad_list) { ad.IsPlaying = false; } }
public void StopActiveLoopAnimations(Model anim_model) { AnimComponent ac = anim_model.Components[anim_model.animComponentID] as AnimComponent; List <AnimData> ad_list = ac.getActiveAnimations(); foreach (AnimData ad in ad_list) { if (ad.AnimType == libMBIN.NMS.Toolkit.TkAnimationData.AnimTypeEnum.Loop) { ad.IsPlaying = false; } } }