Fix Assert: Wireframe XRay during Sculpting
In the situation that the viewport was set to solid/texture mode and switch to wireframe and sculpt mode, an assert was triggered in `workbench_cache_sculpt_populate`.
This commit is contained in:
parent
ac9fe9c2c1
commit
470cdeeae0
|
@ -250,6 +250,8 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd)
|
|||
|
||||
wpd->shading = v3d->shading;
|
||||
if (wpd->shading.type < OB_SOLID) {
|
||||
wpd->shading.light = V3D_LIGHTING_FLAT;
|
||||
wpd->shading.color_type = V3D_SHADING_OBJECT_COLOR;
|
||||
wpd->shading.xray_alpha = 0.0f;
|
||||
}
|
||||
else if (XRAY_ENABLED(v3d)) {
|
||||
|
|
Loading…
Reference in New Issue