[Bf-blender-cvs] [de0bfa1d6a2] filebrowser_redesign: Only add new properties sidebar when there is an operator to execute

Julian Eisel noreply at git.blender.org
Sun Aug 18 23:24:58 CEST 2019


Commit: de0bfa1d6a2d21c27811bbf75157c6c432399392
Author: Julian Eisel
Date:   Sun Aug 18 23:22:29 2019 +0200
Branches: filebrowser_redesign
https://developer.blender.org/rBde0bfa1d6a2d21c27811bbf75157c6c432399392

Only add new properties sidebar when there is an operator to execute

So don't add the sidebar (not even hidden) when the file browser is
opened as regular editor.

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

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

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

diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c
index ec576de2fe5..949e39a132b 100644
--- a/source/blender/editors/space_file/space_file.c
+++ b/source/blender/editors/space_file/space_file.c
@@ -287,7 +287,7 @@ static void file_refresh(const bContext *C, ScrArea *sa)
 
     ED_area_initialize(wm, win, sa);
   }
-  if (sa && BKE_area_find_region_type(sa, RGN_TYPE_TOOL_PROPS) == NULL) {
+  if (sa && sfile->op && BKE_area_find_region_type(sa, RGN_TYPE_TOOL_PROPS) == NULL) {
     /* Create TOOL_PROPS region. */
     ARegion *region_props = file_tool_props_region(sa);



More information about the Bf-blender-cvs mailing list