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
This commit is contained in:
Harley Acheson
2024-08-24 21:32:17 +02:00
committed by Harley Acheson
parent 13eb41959e
commit 503cb7bfee

View File

@@ -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;
}