Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / space_file / file_panels.c
index cf8a5b9e1f251df5cc05ac1754ffdfd66710acf1..cbf685e6ed851244864ae43e2a6a9370f0fcb67c 100644 (file)
@@ -80,7 +80,7 @@ static void file_panel_operator(const bContext *C, Panel *pa)
        UI_block_func_set(uiLayoutGetBlock(pa->layout), file_draw_check_cb, NULL, NULL);
 
        /* Hack: temporary hide.*/
        UI_block_func_set(uiLayoutGetBlock(pa->layout), file_draw_check_cb, NULL, NULL);
 
        /* Hack: temporary hide.*/
-       const char *hide[4] = {"filepath", "files", "directory", "filename"};
+       const char *hide[] = {"filepath", "files", "directory", "filename"};
        for (int i = 0; i < ARRAY_SIZE(hide); i++) {
                PropertyRNA *prop = RNA_struct_find_property(op->ptr, hide[i]);
                if (prop) {
        for (int i = 0; i < ARRAY_SIZE(hide); i++) {
                PropertyRNA *prop = RNA_struct_find_property(op->ptr, hide[i]);
                if (prop) {