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:
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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue