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:
authorClément Foucault <foucault.clem@gmail.com>2019-01-29 22:33:51 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-01-29 22:34:37 +0300
commit1a61c209a0ff7c7b10a3b9bd00cb125fd5e21de6 (patch)
tree7e2d3a9caeaaec06b940ba6a6bb674f4c38747a9 /source/blender/blenloader
parent43150b02a0067a7bc5c1e39797815cd2d907be8f (diff)
Workbench: Make Material transparency part of the rgba color picker
It is only used for solid mode for now but could be used by eevee in the future.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_280.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index c5c234580e6..e1e821d6897 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -2790,5 +2790,11 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
{
/* Versioning code until next subversion bump goes here. */
+
+ if (!DNA_struct_elem_find(fd->filesdna, "Material", "float", "a")) {
+ for (Material *mat = bmain->mat.first; mat; mat = mat->id.next) {
+ mat->a = 1.0f;
+ }
+ }
}
}