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:
authorTempoDev <alexia.legrand@epitech.eu>2020-08-16 23:30:55 +0300
committerTempoDev <alexia.legrand@epitech.eu>2020-08-16 23:30:55 +0300
commit2772910b32d425738fe20a94fc488a3c3712b37d (patch)
treed11a1d5621d43b1082060d8db74b004123364475 /source/blender/makesrna/intern
parent79d256a06da0a6aad0ff9208f05cf58c88b4331b (diff)
Custom Menus : fix read file
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index 16f4a49328c..864a214c405 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -1257,9 +1257,16 @@ static const EnumPropertyItem *rna_UserDef_usermenus_contexts_itemf(bContext *UN
PropertyRNA *UNUSED(prop),
bool *r_free)
{
+ static const char *contexts_list[] = {
+ "mesh edit", "curve edit", "surface edit", "text edit",
+ "armature edit", "mball edit", "lattice edit", "pose mode",
+ "sculpt mode", "weight paint", "vertex paint", "image paint",
+ "particle mode", "object mode", "greasepencil paint", "greasepencil edit",
+ "greasepencil sculpt", "greasepencil weight", "greasepencil vertex", NULL,
+ };
+
int totitem = 0;
EnumPropertyItem *item = NULL;
- const char **contexts_list = CTX_data_list_mode_string();
int i;
for (i = 0; contexts_list[i]; i++) {