Commit: b2bc426c008079c868dbcdcce492d4f7db3b946e
Author: Julian Eisel
Date:   Thu Jul 25 03:16:24 2019 +0200
Branches: filebrowser_redesign
https://developer.blender.org/rBb2bc426c008079c868dbcdcce492d4f7db3b946e

Add new/changed settings to version patching

* Set flag to dynamically size file path region. Without this the region
  can be resized, which is not wanted.
* Enable modification date/time and size details columns

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

M       source/blender/blenloader/intern/versioning_280.c

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

diff --git a/source/blender/blenloader/intern/versioning_280.c 
b/source/blender/blenloader/intern/versioning_280.c
index ffe33253135..aa9f0745df9 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -3539,6 +3539,7 @@ void blo_do_versions_280(FileData *fd, Library 
*UNUSED(lib), Main *bmain)
       for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) {
         for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) {
           if (sl->spacetype == SPACE_FILE) {
+            SpaceFile *sfile = (SpaceFile *)sl;
             ListBase *regionbase = (sl == sa->spacedata.first) ? 
&sa->regionbase : &sl->regionbase;
             ARegion *ar_ui = do_versions_find_region(regionbase, RGN_TYPE_UI);
             ARegion *ar_header = do_versions_find_region(regionbase, 
RGN_TYPE_HEADER);
@@ -3547,6 +3548,12 @@ void blo_do_versions_280(FileData *fd, Library 
*UNUSED(lib), Main *bmain)
               /* Reinsert UI region so that it spawns entire area width */
               BLI_remlink(regionbase, ar_ui);
               BLI_insertlinkafter(regionbase, ar_header, ar_ui);
+
+              ar_ui->flag |= RGN_FLAG_DYNAMIC_SIZE;
+            }
+
+            if (sfile->params) {
+              sfile->params->details_flags |= FILE_DETAILS_SIZE | 
FILE_DETAILS_DATETIME;
             }
           }
         }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to