Blender SVN: New Features #273

Open
Demeter Dzadik wants to merge 13 commits from New-SVN-features into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit a41384c13c - Show all commits

View File

@ -159,15 +159,15 @@ class SVN_addon_preferences(AddonPreferences):
repo = self.repositories.add()
repo.directory = directory
for key, value in repo_data.items():
if key == 'custom_directory_depths':
for dir_path, depth in repo_data['custom_directory_depths'].items():
dir_entry = self.external_files.get(dir_path)
if not dir_entry:
dir_entry = self.external_files.add()
dir_entry.svn_path = dir_path
dir_entry.depth = depth
else:
setattr(repo, key, value)
if 'custom_directory_depths' in repo_data:
for dir_path, depth in repo_data['custom_directory_depths'].items():
dir_entry = repo.external_files.get(dir_path)
if not dir_entry:
dir_entry = repo.external_files.add()
dir_entry.svn_path = dir_path
dir_entry.depth = depth
finally:
self.loading = False