Skip to content

Commit

Permalink
Made SceneInspector pattern matching case-insensitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Mar 9, 2015
1 parent bd6df3c commit 15618ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/GafferSceneUI/SceneInspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,8 @@ def __updateRowVisibility( self ) :
if not patterns :
patterns = "*"
else :
patterns = " ".join( "*" + p + "*" if "*" not in p else p for p in patterns.split() )
patterns = [ p.lower() for p in patterns.split() ]
patterns = " ".join( "*" + p + "*" if "*" not in p else p for p in patterns )

numValidRows = 0
numVisibleRows = 0
Expand All @@ -933,7 +934,7 @@ def __updateRowVisibility( self ) :
visible = False
if row.__valid :
numValidRows += 1
if Gaffer.matchMultiple( row.inspector().name(), patterns ) :
if Gaffer.matchMultiple( row.inspector().name().lower(), patterns ) :
visible = True

row.setVisible( visible )
Expand Down

0 comments on commit 15618ac

Please sign in to comment.