diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-04-16 11:10:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-04-16 11:26:07 +0300 |
commit | 90d3fe1e4dd5a4be86ef738dfaca08ae8c9ca3f7 (patch) | |
tree | 538bcba599a40eab5d8b9efe7c06e721fcf115be /source/blender/editors/space_image/space_image.c | |
parent | ec263547b53477bf7e0b775c913353d897ccae1c (diff) |
UV: support changing the opacity of the UV overlay
Add this option as it's useful to adjust how much UV's
cover the image when UV mapping.
D5348 by @EitanSomething with edits
Diffstat (limited to 'source/blender/editors/space_image/space_image.c')
-rw-r--r-- | source/blender/editors/space_image/space_image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c index 5c146a99efd..ed14593ed2d 100644 --- a/source/blender/editors/space_image/space_image.c +++ b/source/blender/editors/space_image/space_image.c @@ -127,6 +127,7 @@ static SpaceLink *image_new(const ScrArea *UNUSED(area), const Scene *UNUSED(sce simage->zoom = 1.0f; simage->lock = true; simage->flag = SI_SHOW_GPENCIL | SI_USE_ALPHA | SI_COORDFLOATS; + simage->uv_opacity = 1.0f; BKE_imageuser_default(&simage->iuser); simage->iuser.flag = IMA_SHOW_STEREO | IMA_ANIM_ALWAYS; |