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:
authorJulian Eisel <eiseljulian@gmail.com>2019-10-16 13:04:56 +0300
committerJulian Eisel <eiseljulian@gmail.com>2019-10-16 15:06:48 +0300
commitb54626364253f6023b2a2fa9d7a4211ea45a3bd4 (patch)
tree2b62dc6fb29ba82b0cd4af75229b2378b88eaadb /source/blender/blenloader
parenta3f7ae1b968232ddc4fc4a8be02ba25a2fcf04eb (diff)
UI: Remember ID-Filter in-between File Browser calls
This adds the ID-Filters visible on append/link to the settings the file browser remembers, potentially storing them in the Preferences. Artists in the studio here requested this. They typically have to set up the same or similar settings every time, so this saves them from that.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_userdef.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c
index d2192f1e22a..e1ee020940e 100644
--- a/source/blender/blenloader/intern/versioning_userdef.c
+++ b/source/blender/blenloader/intern/versioning_userdef.c
@@ -637,6 +637,10 @@ void BLO_version_defaults_userpref_blend(Main *bmain, UserDef *userdef)
}
}
+ if (!USER_VERSION_ATLEAST(282, 1)) {
+ userdef->file_space_data.filter_id = U_default.file_space_data.filter_id;
+ }
+
/**
* Include next version bump.
*/