[Bf-blender-cvs] [935d6224587] filebrowser_redesign: Add right sidebar region for operator properties

Julian Eisel noreply at git.blender.org
Sun Aug 18 15:21:40 CEST 2019


Commit: 935d62245871cb5476fc1e3003f905a440198a49
Author: Julian Eisel
Date:   Sun Aug 18 15:16:59 2019 +0200
Branches: filebrowser_redesign
https://developer.blender.org/rB935d62245871cb5476fc1e3003f905a440198a49

Add right sidebar region for operator properties

This always shows up right now. Hiding it correctly still has to be
done.

===================================================================

M	source/blender/editors/space_file/file_ops.c
M	source/blender/editors/space_file/file_panels.c
M	source/blender/editors/space_file/space_file.c

===================================================================

diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index d1006cd8e35..9ddd50a9bbe 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -2314,7 +2314,7 @@ ARegion *file_tools_region(ScrArea *sa)
   ar = MEM_callocN(sizeof(ARegion), "tool props for file");
   BLI_insertlinkafter(&sa->regionbase, arnew, ar);
   ar->regiontype = RGN_TYPE_TOOL_PROPS;
-  ar->alignment = RGN_ALIGN_BOTTOM | RGN_SPLIT_PREV;
+  ar->alignment = RGN_ALIGN_RIGHT;
 
   return arnew;
 }
diff --git a/source/blender/editors/space_file/file_panels.c b/source/blender/editors/space_file/file_panels.c
index d9a6e70121f..b41358f575f 100644
--- a/source/blender/editors/space_file/file_panels.c
+++ b/source/blender/editors/space_file/file_panels.c
@@ -103,6 +103,7 @@ void file_panels_register(ARegionType *art)
   strcpy(pt->idname, "FILE_PT_operator");
   strcpy(pt->label, N_("Operator"));
   strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA);
+  pt->flag = PNL_NO_HEADER;
   pt->poll = file_panel_operator_poll;
   pt->draw_header = file_panel_operator_header;
   pt->draw = file_panel_operator;
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c
index 3159561eda7..f5c381716f9 100644
--- a/source/blender/editors/space_file/space_file.c
+++ b/source/blender/editors/space_file/space_file.c
@@ -89,7 +89,7 @@ static SpaceLink *file_new(const ScrArea *UNUSED(area), const Scene *UNUSED(scen
   ar = MEM_callocN(sizeof(ARegion), "tool props region for file");
   BLI_addtail(&sfile->regionbase, ar);
   ar->regiontype = RGN_TYPE_TOOL_PROPS;
-  ar->alignment = RGN_ALIGN_BOTTOM | RGN_SPLIT_PREV;
+  ar->alignment = RGN_ALIGN_RIGHT;
 
   /* Execute region */
   ar = MEM_callocN(sizeof(ARegion), "execute region for file");
@@ -728,8 +728,8 @@ void ED_spacetype_file(void)
   /* regions: tool properties */
   art = MEM_callocN(sizeof(ARegionType), "spacetype file operator region");
   art->regionid = RGN_TYPE_TOOL_PROPS;
-  art->prefsizex = 0;
-  art->prefsizey = 360;
+  art->prefsizex = 240;
+  art->prefsizey = 60;
   art->keymapflag = ED_KEYMAP_UI;
   art->listener = file_tools_region_listener;
   art->init = file_tools_region_init;



More information about the Bf-blender-cvs mailing list