Changed GetCurrentModel to return the model instead of the tuple

This commit is contained in:
CoudronJerome
2023-03-29 19:17:42 +02:00
parent be8885a508
commit a44532b94a
3 changed files with 9 additions and 7 deletions

View File

@@ -41,10 +41,9 @@ public class ModelList : ScriptableObject
/// </summary>
/// <param name="modelIndex">ModelIndex of the model</param>
/// <returns>Model associated with this index, null if no model was found</returns>
public ModelTuple GetCurrentModel()
public NNModel GetCurrentModel()
{
//if(currentModelIndex < models.Find)
return models.Find(x => x.model == models[currentModelIndex].model);
return models.Find(x => x.model == models[currentModelIndex].model)?.model;
}
/// <summary>