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-06-01 18:06:25 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2018-06-01 18:15:35 +0300
commite4a727626e34eef20e2b41cc3e26b41db4f360a0 (patch)
tree25af9312b02b0defae25f2c08c2a9863d2e795e1 /source/blender/editors
parent56dc2bf0c528524b9a31c9cd27f9b1a261827bf0 (diff)
X-Ray: Added a slider for the alpha
- will not render when set to 0.0 for speed reasons. so when user sets transparency to hide everything the bigger passes will be skipped.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_view3d/space_view3d.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c
index fcea40d7f4c..605e678be93 100644
--- a/source/blender/editors/space_view3d/space_view3d.c
+++ b/source/blender/editors/space_view3d/space_view3d.c
@@ -325,7 +325,8 @@ static SpaceLink *view3d_new(const ScrArea *UNUSED(sa), const Scene *scene)
v3d->drawtype = OB_SOLID;
v3d->shading.flag = V3D_SHADING_SPECULAR_HIGHLIGHT;
v3d->shading.light = V3D_LIGHTING_STUDIO;
- v3d->shading.shadow_intensity = 0.5;
+ v3d->shading.shadow_intensity = 0.5f;
+ v3d->shading.xray_alpha = 0.5f;
copy_v3_fl(v3d->shading.single_color, 0.8f);
v3d->overlay.flag = V3D_OVERLAY_LOOK_DEV;