UVEdit: Fix assert caused by depth mask not being set before clear

This happened when using the shading panel when a uv editor opened.
This commit is contained in:
Clément Foucault 2020-08-24 14:14:17 +02:00
parent 7ce764c9ec
commit be920fe786
1 changed files with 1 additions and 0 deletions

View File

@ -552,6 +552,7 @@ void ED_uvedit_draw_main(SpaceImage *sima,
Object **objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data_with_uvs(
view_layer, ((View3D *)NULL), &objects_len);
if (objects_len > 0) {
GPU_depth_mask(true);
GPU_clear_depth(1.0f);
}