comment is not overriden with empty string if is already set

This commit is contained in:
iLLiCiTiT 2020-01-31 12:13:39 +01:00
parent e4ba53ac15
commit 1afd2b40ce

View file

@ -15,4 +15,5 @@ class CollectComment(pyblish.api.ContextPlugin):
order = pyblish.api.CollectorOrder
def process(self, context):
context.data["comment"] = ""
comment = (context.data.get("comment") or "").strip()
context.data["comment"] = comment