Skip to content

Commit

Permalink
Merge pull request #5 from jarosm/patch-1
Browse files Browse the repository at this point in the history
1.3.1 compatibility of SimplePartFilter (NRE fix)
  • Loading branch information
allista committed Oct 25, 2017
2 parents 4d68ac1 + bec644c commit 1c91376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimplePartFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public abstract class SimplePartFilter : MonoBehaviour
{
List<string> modules;
protected List<string> MODULES { get { return modules; } }
protected string CATEGORY = "Filter by function";
protected string CATEGORY = "Filter by Function";
protected string SUBCATEGORY = "";
protected string FOLDER = "";
protected string ICON = "";
Expand All @@ -53,7 +53,7 @@ void set_modules_icon(Icon icon)
if(modules != null && modules.Count > 0)
{
PartCategorizer.Instance.filters
.Find(f => f.button.categoryName == "Filter by module")
.Find(f => f.button.categoryName == "Filter by Module")
.subcategories.FindAll(s => modules.Any(m => m == s.button.categoryName))
.ForEach(c => c.button.SetIcon(icon));
}
Expand Down

0 comments on commit 1c91376

Please sign in to comment.