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:
authorPablo Dobarro <pablodp606@gmail.com>2021-08-23 19:33:04 +0300
committerPablo Dobarro <pablodp606@gmail.com>2021-08-24 13:56:36 +0300
commit3c82725d745cf35eb96f2b79dc8483e85610a6e9 (patch)
tree472c4274ef531fab9f03968f7c3caa0ee0a0a8fd
parent46913bf0a08c7e9ae5525ff95af0c7dc3b2f622f (diff)
Disable Fade Inactive Geometry overlay by default
This overlay was intended to identify the active objects in modes like Sculpt Mode, where you don't have any extra visual indication of what is the current and target object when switching directly between them. After having flash on mode transfer on the transfer mode operator, the visual information this overlays provides is redundant. It is still available in case some users want to use it like a way of focusing on the active object. Reviewed By: JulienKaspar, JacquesLucke Differential Revision: https://developer.blender.org/D12303
-rw-r--r--source/blender/blenloader/intern/versioning_300.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c
index eb01bfbfb9c..72572b05ef6 100644
--- a/source/blender/blenloader/intern/versioning_300.c
+++ b/source/blender/blenloader/intern/versioning_300.c
@@ -805,5 +805,18 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
}
FOREACH_NODETREE_END;
+
+ /* Disable Fade Inactive Overlay by default as it is redundant after introducing flash on mode
+ * transfer. */
+ for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) {
+ LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) {
+ LISTBASE_FOREACH (SpaceLink *, sl, &area->spacedata) {
+ if (sl->spacetype == SPACE_VIEW3D) {
+ View3D *v3d = (View3D *)sl;
+ v3d->overlay.flag &= ~V3D_OVERLAY_FADE_INACTIVE;
+ }
+ }
+ }
+ }
}
}