Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/makesrna/intern/rna_space.c')
-rw-r--r--source/blender/makesrna/intern/rna_space.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index d26662e9a43..6e30e279ddc 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -1777,11 +1777,9 @@ static const EnumPropertyItem *rna_SpaceProperties_context_itemf(bContext *UNUSE
SpaceProperties *sbuts = (SpaceProperties *)(ptr->data);
EnumPropertyItem *item = NULL;
- /* We use 32 tabs maximum here so a flag for each can fit into a 32 bit integer flag.
- * A theoretical maximum would be BCONTEXT_TOT * 2, with every tab displayed and a spacer
- * in every other item. But this size is currently limited by the size of integer
- * supported by RNA enums. */
- int context_tabs_array[32];
+ /* Although it would never reach this amount, a theoretical maximum number of tabs
+ * is BCONTEXT_TOT * 2, with every tab displayed and a spacer in every other item. */
+ short context_tabs_array[BCONTEXT_TOT * 2];
int totitem = ED_buttons_tabs_list(sbuts, context_tabs_array);
BLI_assert(totitem <= ARRAY_SIZE(context_tabs_array));