mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
filter representations by id earlier
This commit is contained in:
parent
fa32a807c5
commit
028375620f
1 changed files with 8 additions and 8 deletions
|
|
@ -1587,14 +1587,14 @@ class PlaceholderLoadMixin(object):
|
|||
|
||||
placeholder_representations = self._get_representations(placeholder)
|
||||
|
||||
filtered_representations = []
|
||||
for representation in self._reduce_last_version_repre_entities(
|
||||
placeholder_representations
|
||||
):
|
||||
repre_id = representation["id"]
|
||||
if repre_id not in ignore_repre_ids:
|
||||
filtered_representations.append(representation)
|
||||
|
||||
filtered_representations = [
|
||||
repre_entity
|
||||
for repre_entity in self._get_representations(placeholder)
|
||||
if repre_entity["id"] not in ignore_repre_ids
|
||||
]
|
||||
filtered_representations = self._reduce_last_version_repre_entities(
|
||||
filtered_representations
|
||||
)
|
||||
if not filtered_representations:
|
||||
self.log.info((
|
||||
"There's no representation for this placeholder: {}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue