Merge branch 'blender-v4.1-release'

This commit is contained in:
Pratik Borhade
2024-03-25 18:28:23 +05:30

View File

@@ -506,7 +506,7 @@ void ED_view3d_gizmo_mesh_preselect_get_active(const bContext *C,
/* weak, allocate an array just to access the index. */
Base *base = nullptr;
Object *obedit = nullptr;
{
if (object_index != -1) {
Vector<Base *> bases = BKE_view_layer_array_from_bases_in_edit_mode(
scene, view_layer, CTX_wm_view3d(C));
if (object_index < bases.size()) {