[Bf-blender-cvs] [dccdc5df10f] master: Fix T69933: Blender 2.81 doesn't import 2.80 preferences from quick setup screen

Brecht Van Lommel noreply at git.blender.org
Mon Oct 7 19:42:16 CEST 2019


Commit: dccdc5df10fe357d8026afdcff43fcac82a9231d
Author: Brecht Van Lommel
Date:   Mon Oct 7 19:41:05 2019 +0200
Branches: master
https://developer.blender.org/rBdccdc5df10fe357d8026afdcff43fcac82a9231d

Fix T69933: Blender 2.81 doesn't import 2.80 preferences from quick setup screen

===================================================================

M	release/scripts/startup/bl_operators/userpref.py

===================================================================

diff --git a/release/scripts/startup/bl_operators/userpref.py b/release/scripts/startup/bl_operators/userpref.py
index b052f333d2a..0cd90610cdc 100644
--- a/release/scripts/startup/bl_operators/userpref.py
+++ b/release/scripts/startup/bl_operators/userpref.py
@@ -114,7 +114,8 @@ class PREFERENCES_OT_copy_prev(Operator):
 
         shutil.copytree(self._old_path(), self._new_path(), symlinks=True)
 
-        # reload recent-files.txt
+        # reload preferences and recent-files.txt
+        bpy.ops.wm.read_userpref()
         bpy.ops.wm.read_history()
 
         # don't loose users work if they open the splash later.



More information about the Bf-blender-cvs mailing list