add label to matching family (#5128)

* 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>
This commit is contained in:
Clément Hector 2023-06-15 10:13:49 +02:00 committed by GitHub
parent fa9d348b32
commit 59b7e265da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,6 +53,9 @@ class CreatorsModel(QtGui.QStandardItemModel):
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