Skip to content

Commit

Permalink
add label to matching family (ynput#5128)
Browse files Browse the repository at this point in the history
* add label to matching family

* Update openpype/tools/creator/model.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>

---------

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
  • Loading branch information
ClementHector and iLLiCiTiT authored Jun 15, 2023
1 parent fa9d348 commit 59b7e26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openpype/tools/creator/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def get_indexes_by_family(self, family):
index = self.index(row, 0)
item_id = index.data(ITEM_ID_ROLE)
creator_plugin = self._creators_by_id.get(item_id)
if creator_plugin and creator_plugin.family == family:
if creator_plugin and (
creator_plugin.label.lower() == family.lower()
or creator_plugin.family.lower() == family.lower()
):
indexes.append(index)
return indexes

0 comments on commit 59b7e26

Please sign in to comment.