mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #112409: Workbench: Cavity disabled when Xray is enabled
This commit is contained in:
parent
ea360ffc12
commit
264c81a0a0
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ void SceneState::init(Object *camera_ob /*=nullptr*/)
|
|||
}
|
||||
xray_mode = shading.xray_alpha != 1.0f;
|
||||
|
||||
if (SHADING_XRAY_FLAG_ENABLED(shading)) {
|
||||
if (xray_mode) {
|
||||
/* Disable shading options that aren't supported in transparency mode. */
|
||||
shading.flag &= ~(V3D_SHADING_SHADOW | V3D_SHADING_CAVITY | V3D_SHADING_DEPTH_OF_FIELD);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue