Skip to content

Commit

Permalink
Merge branch 'develop' into enhancement/AY-6179_SP-redshift-template-…
Browse files Browse the repository at this point in the history
…support
  • Loading branch information
moonyuet authored Jul 29, 2024
2 parents 2ff0b6e + ed4c099 commit ba1e3ed
Showing 1 changed file with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ def create_image_instance(self, instance, template, outputs,
task_name = task_entity["name"]
task_type = task_entity["taskType"]

# TODO: The product type actually isn't 'texture' currently but
# for now this is only done so the product name starts with
# 'texture'
image_product_name = get_product_name(
# TODO: The product type actually isn't 'texture' currently but
# for now this is only done so the product name starts with
# 'texture'
context.data["projectName"],
task_name,
task_type,
Expand All @@ -104,6 +104,15 @@ def create_image_instance(self, instance, template, outputs,
variant=instance.data["variant"] + suffix,
project_settings=context.data["project_settings"]
)
image_product_group_name = get_product_name(
context.data["projectName"],
task_name,
task_type,
context.data["hostName"],
product_type="texture",
variant=instance.data["variant"],
project_settings=context.data["project_settings"]
)

# Prepare representation
representation = {
Expand Down Expand Up @@ -141,7 +150,7 @@ def create_image_instance(self, instance, template, outputs,
image_instance.data["representations"] = [representation]

# Group the textures together in the loader
image_instance.data["productGroup"] = image_product_name
image_instance.data["productGroup"] = image_product_group_name

# Store the texture set name and stack name on the instance
image_instance.data["textureSetName"] = texture_set_name
Expand Down

0 comments on commit ba1e3ed

Please sign in to comment.