mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
add comment to explain the action
This commit is contained in:
parent
70b11f9a50
commit
cdfe59fd18
1 changed files with 2 additions and 0 deletions
|
|
@ -136,6 +136,8 @@ class SubstanceProjectConfigurationWindow(QtWidgets.QDialog):
|
|||
templates = self.project_templates
|
||||
name = self.template_name
|
||||
if not name:
|
||||
# if user close the dialog,
|
||||
# template name would be None
|
||||
return None
|
||||
template = get_template_by_name(name, templates)
|
||||
template = copy.deepcopy(template) # do not edit the original
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue