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 #1914 from pypeclub/bugfix/OP_textures_workfile_va…
Browse files Browse the repository at this point in the history
…lidators

Fix - texture validators for workfiles triggers only for textures workfiles
  • Loading branch information
kalisp authored Aug 10, 2021
2 parents 39ddf30 + a4f9ee1 commit 26bb7d9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def _create_new_instances(self, context, asset, asset_builds,
# store origin
if family == 'workfile':
families = self.workfile_families
families.append("texture_batch_workfile")

new_instance.data["source"] = "standalone publisher"
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ValidateTextureBatch(pyblish.api.InstancePlugin):
label = "Validate Texture Presence"
hosts = ["standalonepublisher"]
order = openpype.api.ValidateContentsOrder
families = ["workfile"]
families = ["texture_batch_workfile"]
optional = False

def process(self, instance):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ValidateTextureBatchNaming(pyblish.api.InstancePlugin):
label = "Validate Texture Batch Naming"
hosts = ["standalonepublisher"]
order = openpype.api.ValidateContentsOrder
families = ["workfile", "textures"]
families = ["texture_batch_workfile", "textures"]
optional = False

def process(self, instance):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ValidateTextureBatchWorkfiles(pyblish.api.InstancePlugin):
label = "Validate Texture Workfile Has Resources"
hosts = ["standalonepublisher"]
order = openpype.api.ValidateContentsOrder
families = ["workfile"]
families = ["texture_batch_workfile"]
optional = True

# from presets
Expand Down

0 comments on commit 26bb7d9

Please sign in to comment.