[processing] remove square brackets from output names when no path and no extensions are provided

This commit is contained in:
volaya 2016-05-25 10:43:10 +02:00
parent 1132eb9070
commit 950a191813

View File

@ -237,6 +237,8 @@ class OutputSelectionPanel(BASE, WIDGET):
result = exp.evaluate(context)
if not exp.hasEvalError():
fileName = result
if fileName.startswith("[") and fileName.endswith("]"):
fileName = fileName[1:-1]
if fileName.strip() in ['', self.SAVE_TO_TEMP_FILE]:
value = None
elif fileName.startswith('memory:'):