public static void Load(FileSystem fs, string path, out MeshDef def, out Animation animation, float scale) { Runner runner = new Runner(); runner.run(fs.readLines(path), scale); def = MilkshapeCommon.ExtractMeshDefinition(runner.model); animation = MilkshapeCommon.ExtractAnimation(runner.model); }
public static void Load(FileSystem fs, string meshpath, out MeshDef def, out Animation animation) { Model model; using (Stream s = fs.open(meshpath)) { Runner run = new Runner(s); run.run(); model = ExtractModel(run); } def = MilkshapeCommon.ExtractMeshDefinition(model); animation = MilkshapeCommon.ExtractAnimation(model); }