add sync workfile version into substance painter

This commit is contained in:
Kayla Man 2024-06-04 17:42:04 +08:00
parent 72e06a09f6
commit 66df4fcf0d
4 changed files with 24 additions and 5 deletions

View file

@ -313,8 +313,9 @@ class CollectAnatomyInstanceData(pyblish.api.ContextPlugin):
# Define version
version_number = None
if self.follow_workfile_version:
version_number = context.data("version")
if self.follow_workfile_version or instance.data.get(
"follow_workfile_version", self.follow_workfile_version):
version_number = context.data("version")
# Even if 'follow_workfile_version' is enabled, it may not be set
# because workfile version was not collected to 'context.data'