Overlay-Next: Avoid undefined memory as object handle

Fixes selection
This commit is contained in:
Clément Foucault
2024-10-16 11:07:58 +02:00
parent 5a561c6aeb
commit 1d264b4589
2 changed files with 2 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ static void SELECT_next_cache_populate(void *vedata, Object *object)
ref.object = object;
ref.dupli_object = DRW_object_get_dupli(object);
ref.dupli_parent = DRW_object_get_dupli_parent(object);
ref.handle.raw = 0;
reinterpret_cast<Instance *>(reinterpret_cast<OVERLAY_Data *>(vedata)->instance)
->object_sync(ref, *DRW_manager_get());

View File

@@ -541,6 +541,7 @@ static void workbench_cache_populate(void *vedata, Object *object)
ref.object = object;
ref.dupli_object = DRW_object_get_dupli(object);
ref.dupli_parent = DRW_object_get_dupli_parent(object);
ref.handle.raw = 0;
reinterpret_cast<WORKBENCH_Data *>(vedata)->instance->object_sync(*manager, ref);
}