mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
safer subset names when asset is not set
This commit is contained in:
parent
f68cf132a5
commit
16ded37ea1
1 changed files with 4 additions and 1 deletions
|
|
@ -651,7 +651,10 @@ class CreateDialog(QtWidgets.QDialog):
|
|||
|
||||
def _validate_subset_name(self, subset_name, variant_value):
|
||||
# Get all subsets of the current asset
|
||||
existing_subset_names = set(self._subset_names)
|
||||
if self._subset_names:
|
||||
existing_subset_names = set(self._subset_names)
|
||||
else:
|
||||
existing_subset_names = set()
|
||||
existing_subset_names_low = set(
|
||||
_name.lower()
|
||||
for _name in existing_subset_names
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue