diff options
author | Antonioya <blendergit@gmail.com> | 2018-10-30 19:53:30 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-10-30 19:54:01 +0300 |
commit | 6f311ef57ec8760d020b6745be87a6770e5c58ce (patch) | |
tree | b012094a8fb76b858e796a9189aee4679f342771 /source/blender/blenloader | |
parent | e7811ce0c41652525545989bb1dfce1c8ab2b46b (diff) |
GP: New Fade no active layer overlay option
This option allows to fade all layers except active one. This can help in very crowded scenes with a lot of layers, to verify you are working in the right one.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 7ae445ab476..75818a30751 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -2205,5 +2205,20 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) } } } + + /* grease pencil fade layer opacity */ + if (!DNA_struct_elem_find(fd->filesdna, "View3DOverlay", "float", "gpencil_fade_layer")) { + for (bScreen *screen = bmain->screen.first; screen; screen = screen->id.next) { + for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) { + for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) { + if (sl->spacetype == SPACE_VIEW3D) { + View3D *v3d = (View3D *)sl; + v3d->overlay.gpencil_fade_layer = 0.5f; + } + } + } + } + } + } } |