Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3088 from BigRoy/maya_collect_render_cameras_check
Browse files Browse the repository at this point in the history
Maya: Collect Render fix any render cameras check
  • Loading branch information
iLLiCiTiT authored Apr 26, 2022
2 parents 84991dd + 917013e commit a6450f8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions openpype/hosts/maya/plugins/publish/collect_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,11 @@ def process(self, context):
assert render_products, "no render products generated"
exp_files = []
multipart = False
render_cameras = []
for product in render_products:
if product.multipart:
multipart = True
product_name = product.productName
if product.camera and layer_render_products.has_camera_token():
render_cameras.append(product.camera)
product_name = "{}{}".format(
product.camera,
"_" + product_name if product_name else "")
Expand All @@ -210,7 +208,8 @@ def process(self, context):
product)
})

assert render_cameras, "No render cameras found."
has_cameras = any(product.camera for product in render_products)
assert has_cameras, "No render cameras found."

self.log.info("multipart: {}".format(
multipart))
Expand Down

0 comments on commit a6450f8

Please sign in to comment.