public static Model AddModel(string modelPath, float loopBlend, string key = "") { modelPath = modelPath.Replace(G.I, '/'); if (key == "") { key = modelPath.Substring(modelPath.LastIndexOf('/') + 1); } Model model = content.Load <Model>(modelPath); models.Add(key, model); AnimatedModel anim = new AnimatedModel(key); anim.LoadContent(RenderMethod.Diffuse); anim.MakeLoopBlend(loopBlend); return(model); }