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:
authorJeroen Bakker <jeroen@blender.org>2020-09-30 09:12:51 +0300
committerJeroen Bakker <jeroen@blender.org>2020-09-30 09:12:51 +0300
commit192e591af9fb240fbdf077e0c1b7a95d136713ef (patch)
tree232ae9c7d15bada94722501b04657b6b5908126c /source/blender/blenloader/intern/versioning_280.c
parent0016e73eda906140a189aa2233f1342a7526ddbd (diff)
Version: Blender 2.83.7 releasev2.83.7
Diffstat (limited to 'source/blender/blenloader/intern/versioning_280.c')
-rw-r--r--source/blender/blenloader/intern/versioning_280.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index 7e6939f2114..d7a5d54b3f6 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -5074,6 +5074,14 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
}
+ if (!MAIN_VERSION_ATLEAST(bmain, 283, 20)) {
+ for (wmWindowManager *wm = bmain->wm.first; wm; wm = wm->id.next) {
+ /* Don't rotate light with the viewer by default, make it fixed. Shading settings can't be
+ * edited and this flag should always be set. So we can always execute this. */
+ wm->xr.session_settings.shading.flag |= V3D_SHADING_WORLD_ORIENTATION;
+ }
+ }
+
/**
* Versioning code until next subversion bump goes here.
*
@@ -5085,12 +5093,6 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
* \note Keep this message at the bottom of the function.
*/
{
- for (wmWindowManager *wm = bmain->wm.first; wm; wm = wm->id.next) {
- /* Don't rotate light with the viewer by default, make it fixed. Shading settings can't be
- * edited and this flag should always be set. So we can always execute this. */
- wm->xr.session_settings.shading.flag |= V3D_SHADING_WORLD_ORIENTATION;
- }
-
/* Keep this block, even when empty. */
}
}