From 503cb7bfeeab740fa7fa176e1be47ae0e9cbdbad Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Sat, 24 Aug 2024 21:32:17 +0200 Subject: [PATCH] UI: Correction to Space Image image_space_name_get This corrects a small typo in #126584 that results in getting an index from rna_enum_space_image_mode_items but getting the name from rna_enum_space_image_mode_all_items. Pull Request: https://projects.blender.org/blender/blender/pulls/126741 --- source/blender/editors/space_image/space_image.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/space_image/space_image.cc b/source/blender/editors/space_image/space_image.cc index 63a24a2fbfe..840b4aa2795 100644 --- a/source/blender/editors/space_image/space_image.cc +++ b/source/blender/editors/space_image/space_image.cc @@ -1084,7 +1084,7 @@ static blender::StringRefNull image_space_name_get(const ScrArea *area) if (index < 0) { index = SI_MODE_VIEW; } - const EnumPropertyItem item = rna_enum_space_image_mode_all_items[index]; + const EnumPropertyItem item = rna_enum_space_image_mode_items[index]; return item.name; }