mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Change the check of "label" key
This commit is contained in:
parent
55bf1bea91
commit
6761aa7d68
1 changed files with 8 additions and 3 deletions
|
|
@ -18,9 +18,11 @@ class CollectContextLabel(pyblish.api.ContextPlugin):
|
||||||
|
|
||||||
def process(self, context):
|
def process(self, context):
|
||||||
# Add ability to use custom context label
|
# Add ability to use custom context label
|
||||||
context_label = context.data.get("contextLabel")
|
label = context.data.get("label")
|
||||||
if context_label:
|
if label:
|
||||||
context.data["label"] = context_label
|
self.log.debug("Context label is already set to \"{}\"".format(
|
||||||
|
label
|
||||||
|
))
|
||||||
return
|
return
|
||||||
|
|
||||||
host_name = context.data.get("hostName")
|
host_name = context.data.get("hostName")
|
||||||
|
|
@ -36,3 +38,6 @@ class CollectContextLabel(pyblish.api.ContextPlugin):
|
||||||
|
|
||||||
# Set label
|
# Set label
|
||||||
context.data["label"] = label
|
context.data["label"] = label
|
||||||
|
self.log.debug("Context label is changed to \"{}\"".format(
|
||||||
|
label
|
||||||
|
))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue