Fix T86542: Crash going to UV editing workspace with an instancer that

is hidden from the viewport

Check visibilty (as done in workbench_cache_populate) in
overlay_edit_uv_cache_populate as well.

Maniphest Tasks: T86542

Differential Revision: https://developer.blender.org/D10724
This commit is contained in:
Philipp Oeser 2021-03-15 12:08:08 +01:00
parent 880c840c0b
commit 14863b3d4d
Notes: blender-bot 2023-02-14 09:36:46 +01:00
Referenced by issue #86542, Crash going to UV editing workspace with an instancer that is hidden from the viewport
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#include "BKE_image.h"
#include "BKE_layer.h"
#include "BKE_mask.h"
#include "BKE_object.h"
#include "BKE_paint.h"
#include "DNA_brush_types.h"
@ -417,6 +418,10 @@ void OVERLAY_edit_uv_cache_init(OVERLAY_Data *vedata)
static void overlay_edit_uv_cache_populate(OVERLAY_Data *vedata, Object *ob)
{
if (!(DRW_object_visibility_in_active_context(ob) & OB_VISIBLE_SELF)) {
return;
}
OVERLAY_StorageList *stl = vedata->stl;
OVERLAY_PrivateData *pd = stl->pd;
GPUBatch *geom;