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 #3356 from pypeclub/bugfix/deadline-reviewable-mis…
Browse files Browse the repository at this point in the history
…idetification

deadline: fixing misidentification of revieables
  • Loading branch information
iLLiCiTiT authored Jun 17, 2022
2 parents 926cd6a + e916811 commit 2a1688b
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions openpype/modules/deadline/plugins/publish/submit_publish_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,9 +643,6 @@ def _get_representations(self, instance, exp_files):
def _solve_families(self, instance, preview=False):
families = instance.get("families")

# test also instance data review attribute
preview = preview or instance.get("review")

# if we have one representation with preview tag
# flag whole instance for review and for ftrack
if preview:
Expand Down Expand Up @@ -725,10 +722,17 @@ def process(self, instance):
" This may cause issues."
).format(source))

families = ["render"]
family = "render"
if "prerender" in instance.data["families"]:
family = "prerender"
families = [family]

# pass review to families if marked as review
if data.get("review"):
families.append("review")

instance_skeleton_data = {
"family": "render",
"family": family,
"subset": subset,
"families": families,
"asset": asset,
Expand All @@ -750,15 +754,6 @@ def process(self, instance):
"useSequenceForReview": data.get("useSequenceForReview", True)
}

if "prerender" in instance.data["families"]:
instance_skeleton_data.update({
"family": "prerender",
"families": []})

# also include review attribute if available
if "review" in data:
instance_skeleton_data["review"] = data["review"]

# skip locking version if we are creating v01
instance_version = instance.data.get("version") # take this if exists
if instance_version != 1:
Expand Down

0 comments on commit 2a1688b

Please sign in to comment.