Skip to content

Commit

Permalink
🚨 hound fix
Browse files Browse the repository at this point in the history
  • Loading branch information
antirotor committed Jan 9, 2023
1 parent 59f051d commit ea65afd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions openpype/hosts/unreal/plugins/publish/collect_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ class CollectInstances(pyblish.api.ContextPlugin):
def process(self, context):

ar = unreal.AssetRegistryHelpers.get_asset_registry()
class_name = ["/Script/OpenPype",
"OpenPypePublishInstance"] if UNREAL_VERSION.major == 5 and \
UNREAL_VERSION.minor > 0 else "OpenPypePublishInstance" # noqa
class_name = [
"/Script/OpenPype",
"OpenPypePublishInstance"
] if (
UNREAL_VERSION.major == 5
and UNREAL_VERSION.minor > 0
) else "OpenPypePublishInstance" # noqa
instance_containers = ar.get_assets_by_class(class_name, True)

for container_data in instance_containers:
Expand Down

0 comments on commit ea65afd

Please sign in to comment.