Merge pull request #46 from ynput/bugfix/set-only-available-end-variables

Core: Do not force asset and task during publishing
This commit is contained in:
Jakub Trllo 2024-02-13 11:53:10 +01:00 committed by GitHub
commit 2b593c2271
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,7 +61,10 @@ class CollectFromCreateContext(pyblish.api.ContextPlugin):
("AVALON_ASSET", asset_name),
("AVALON_TASK", task_name)
):
os.environ[key] = value
if value is None:
os.environ.pop(key, None)
else:
os.environ[key] = value
def create_instance(
self,