Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-05-31 18:24:35 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-05-31 18:30:04 +0300
commit46a14bd6a317ead29dfdbf038bd30d49a656249e (patch)
tree7bb88959a50d5c386d60b5b7b96541ccf1eba68b /release
parent2161840d07ae0a934a734ac6198aa7e5cc4b6fcf (diff)
Fix T88670: Load Previous Settings does not copy symlinks
The same code existed in 2.82 and earlier so this should be safe. Removing the custom implementation of shutil.copytree in f34d5d9 did not correctly add back the option to copy symlinks.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/userpref.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/userpref.py b/release/scripts/startup/bl_operators/userpref.py
index 7547184dc04..564a7b69957 100644
--- a/release/scripts/startup/bl_operators/userpref.py
+++ b/release/scripts/startup/bl_operators/userpref.py
@@ -144,7 +144,7 @@ class PREFERENCES_OT_copy_prev(Operator):
def execute(self, _context):
import shutil
- shutil.copytree(self._old_path(), self._new_path(), dirs_exist_ok=True)
+ shutil.copytree(self._old_path(), self._new_path(), dirs_exist_ok=True, symlinks=True)
# reload preferences and recent-files.txt
bpy.ops.wm.read_userpref()