Skip to content

Commit

Permalink
Fixes a bug where simply asking for the human name of a model would f…
Browse files Browse the repository at this point in the history
…ail for non-local models
  • Loading branch information
andybak committed Feb 1, 2025
1 parent 61ae12e commit 4d86561
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Assets/Scripts/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,14 @@ public string AssetId

public string HumanName
{
get { return Path.GetFileNameWithoutExtension(m_Location.RelativePath); }
get
{
if (m_Location.GetLocationType() == Location.Type.IcosaAssetId)
{
return AssetId;
}
return Path.GetFileNameWithoutExtension(m_Location.RelativePath);
}
}

public bool AllowExport
Expand Down

0 comments on commit 4d86561

Please sign in to comment.