🐛 fix instance collection

This commit is contained in:
Ondrej Samohel 2023-01-09 18:30:10 +01:00
parent 4145a488db
commit 59f051d065
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -26,8 +26,8 @@ class CollectInstances(pyblish.api.ContextPlugin):
ar = unreal.AssetRegistryHelpers.get_asset_registry()
class_name = ["/Script/OpenPype",
"AssetContainer"] if UNREAL_VERSION.major == 5 and \
UNREAL_VERSION.minor > 0 else "OpenPypePublishInstance" # noqa
"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: