Commit: 5916e73b2888537926d9aa71125a265989fa9e5a
Author: Campbell Barton
Date: Thu Oct 13 17:33:50 2022 +1100
Branches: blender-v3.3-release
https://developer.blender.org/rB5916e73b2888537926d9aa71125a265989fa9e5a
Fix T100699: Older preferences from 2.93 wont load
Even though this was intentionally removed in [0], loading data from
older startup files is supported. So show them when available.
[0]: 45439dfe4c05eabaa83d0c1b75463966b5ba896d
===================================================================
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 ce23024fed5..6a027c0ce1f 100644
--- a/release/scripts/startup/bl_operators/userpref.py
+++ b/release/scripts/startup/bl_operators/userpref.py
@@ -89,6 +89,17 @@ class PREFERENCES_OT_copy_prev(Operator):
if os.path.isdir(cls._old_version_path(version_split)):
return version_split
version_old = version_old - 1
+
+ # Support loading 2.8x..2.9x startup (any older isn't so useful to
load).
+ # NOTE: remove this block for Blender 4.0 and later.
+ if version_old == 299:
+ version_old = 294
+ while version_old >= 280:
+ version_split = version_old // 100, version_old % 100
+ if os.path.isdir(cls._old_version_path(version_split)):
+ return version_split
+ version_old = version_old - 1
+
return None
@classmethod
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs