Blender SVN: New Features #273
@ -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':
|
||||
setattr(repo, key, value)
|
||||
|
||||
if 'custom_directory_depths' in repo_data:
|
||||
for dir_path, depth in repo_data['custom_directory_depths'].items():
|
||||
dir_entry = self.external_files.get(dir_path)
|
||||
dir_entry = repo.external_files.get(dir_path)
|
||||
if not dir_entry:
|
||||
dir_entry = self.external_files.add()
|
||||
dir_entry = repo.external_files.add()
|
||||
dir_entry.svn_path = dir_path
|
||||
dir_entry.depth = depth
|
||||
else:
|
||||
setattr(repo, key, value)
|
||||
finally:
|
||||
self.loading = False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user