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 <j.bakker@atmind.nl>2018-05-30 15:40:57 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2018-05-30 15:42:07 +0300
commitacaf46db0ea7103aaa3f46092b3582611d37ca0f (patch)
treebfd0adacdbbb6852c49cbf9b3ac73503e62bb638 /source/blender/blenloader
parent29f9a197088e0e1ea56cae675803f61165d790c1 (diff)
Workbench: Specular Highlights
Added specular highlights for: - Solid studio shading - Texture studio shading
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_280.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index bdac8067bb5..a4b5f53e0eb 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -1494,4 +1494,22 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main)
}
}
}
+
+ {
+ if (!DNA_struct_elem_find(fd->filesdna, "SceneDisplay", "float", "roughness")) {
+ for (Scene *scene = main->scene.first; scene; scene = scene->id.next) {
+ scene->display.roughness = 0.0f;
+ }
+ for (bScreen *screen = main->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->shading.flag |= V3D_SHADING_SPECULAR_HIGHLIGHTS;
+ }
+ }
+ }
+ }
+ }
+ }
}