Overlay-Next: Avoid undefined memory as object handle
Fixes selection
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user