2019-07-30 11:04:02 +10:00
|
|
|
/*
|
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* Preferences Data File 'U_default'. */
|
|
|
|
|
|
2019-08-04 01:22:38 +10:00
|
|
|
/* For constants. */
|
2019-08-03 10:47:35 -06:00
|
|
|
#include "BLI_math_base.h"
|
2019-08-04 01:22:38 +10:00
|
|
|
|
2019-07-30 11:04:02 +10:00
|
|
|
#include "DNA_userdef_types.h"
|
|
|
|
|
#include "DNA_curve_types.h"
|
UI: Remember File Browser Display Options in Preferences
This makes it so that some display related properties of the file
browser state are remembered in the Preferences. Otherwise, users often
end up doing the same set up work over and over again, so this is a
nice way to save users some work.
It's typical for other file browsers to remember their state too, so
another benefit is having a more conventional behavior, meeting user
expectations better.
Some points:
* We currently store: Window size, display type, thumbnail size,
enabled details-columns, sort options, "Show Hidden" option. More can
be added easily.
* No changes are stored to the Preferences if "Auto-save Preferences"
is disabled. This is how Quick Favorites behave too and it's a
reasonable way to make this behavior optional.
* The Preferences are only saved to permanent memory upon closing
Blender, following existing convention of Preferences and Quick
Favorites.
* If settings weren't actually changed, Preference saving is skipped.
* Only temporary file browsers save their state (invoked through
actions like open or save), not regular file browser editors. These
are usually used for different purposes and workflows.
* Removes "Show Thumbnails" Preferences option. It would need some
special handling, possibly introducing bugs. For users, this
simplifies behavior and should make things more predictable.
Left in DNA data in case we decide to bring it back.
Reviewers: brecht, #user_interface, billreynish, campbellbarton
Reviewed By: #user_interface, William Reynish, Campbell Barton, Brecht
van Lommel (quick first pass review in person)
Maniphest Tasks: T69460
Differential Revision: https://developer.blender.org/D5893
2019-09-30 18:54:11 +02:00
|
|
|
#include "DNA_space_types.h"
|
2019-10-01 21:38:44 +03:00
|
|
|
#include "DNA_anim_types.h"
|
2019-07-30 11:04:02 +10:00
|
|
|
|
2019-08-04 01:22:38 +10:00
|
|
|
#include "BLI_math_rotation.h"
|
|
|
|
|
|
2019-07-30 11:04:02 +10:00
|
|
|
#include "BKE_blender_version.h"
|
|
|
|
|
|
2019-08-23 02:22:23 +10:00
|
|
|
#include "BLO_readfile.h" /* own include */
|
|
|
|
|
|
2019-07-30 11:04:02 +10:00
|
|
|
const UserDef U_default = {
|
|
|
|
|
.versionfile = BLENDER_VERSION,
|
|
|
|
|
.subversionfile = BLENDER_SUBVERSION,
|
|
|
|
|
.flag = (USER_AUTOSAVE | USER_TOOLTIPS | USER_SAVE_PREVIEWS | USER_RELPATHS |
|
|
|
|
|
USER_RELEASECONFIRM | USER_SCRIPT_AUTOEXEC_DISABLE | USER_NONEGFRAMES),
|
|
|
|
|
.dupflag = USER_DUP_MESH | USER_DUP_CURVE | USER_DUP_SURF | USER_DUP_FONT | USER_DUP_MBALL |
|
|
|
|
|
USER_DUP_LAMP | USER_DUP_ARM | USER_DUP_ACT | USER_DUP_LIGHTPROBE |
|
|
|
|
|
USER_DUP_GPENCIL,
|
|
|
|
|
.pref_flag = USER_PREF_FLAG_SAVE,
|
|
|
|
|
.savetime = 2,
|
|
|
|
|
.tempdir = "",
|
|
|
|
|
.fontdir = "//",
|
|
|
|
|
.renderdir = "//",
|
|
|
|
|
.render_cachedir = "",
|
|
|
|
|
.textudir = "//",
|
|
|
|
|
.pythondir = "",
|
|
|
|
|
.sounddir = "//",
|
|
|
|
|
.i18ndir = "",
|
|
|
|
|
.image_editor = "",
|
|
|
|
|
.anim_player = "",
|
|
|
|
|
.anim_player_preset = 0,
|
|
|
|
|
.v2d_min_gridsize = 45,
|
|
|
|
|
.timecode_style = USER_TIMECODE_MINIMAL,
|
|
|
|
|
.versions = 1,
|
|
|
|
|
.dbl_click_time = 350,
|
|
|
|
|
.wheellinescroll = 3,
|
|
|
|
|
.mini_axis_type = USER_MINI_AXIS_TYPE_GIZMO,
|
|
|
|
|
.uiflag = (USER_FILTERFILEEXTS | USER_DRAWVIEWINFO | USER_PLAINMENUS |
|
|
|
|
|
USER_LOCK_CURSOR_ADJUST | USER_DEPTH_CURSOR | USER_AUTOPERSP | USER_GLOBALUNDO |
|
|
|
|
|
USER_HIDE_DOT | USER_SHOW_GIZMO_NAVIGATE | USER_SHOW_VIEWPORTNAME | USER_SHOW_FPS |
|
|
|
|
|
USER_CONTINUOUS_MOUSE | USER_SAVE_PROMPT),
|
|
|
|
|
.uiflag2 = USER_REGION_OVERLAP,
|
2019-12-05 14:21:57 +01:00
|
|
|
.gpu_flag = USER_GPU_FLAG_OVERLAY_SMOOTH_WIRE,
|
2019-07-30 11:04:02 +10:00
|
|
|
.app_flag = 0,
|
|
|
|
|
.language = 0,
|
|
|
|
|
.viewzoom = USER_ZOOM_DOLLY,
|
|
|
|
|
.mixbufsize = 2048,
|
|
|
|
|
.audiodevice = 0,
|
|
|
|
|
.audiorate = 48000,
|
|
|
|
|
.audioformat = 0x24,
|
|
|
|
|
.audiochannels = 2,
|
2019-08-01 10:03:20 +10:00
|
|
|
|
|
|
|
|
.ui_scale = 1.0,
|
2019-07-30 11:04:02 +10:00
|
|
|
.ui_line_width = 0,
|
2019-08-01 10:03:20 +10:00
|
|
|
|
|
|
|
|
/** Default so DPI is detected automatically. */
|
|
|
|
|
.dpi = 0,
|
|
|
|
|
.dpi_fac = 0.0,
|
2019-07-30 11:04:02 +10:00
|
|
|
.inv_dpi_fac = 0.0, /* run-time. */
|
|
|
|
|
.pixelsize = 1,
|
|
|
|
|
.virtual_pixel = 0,
|
2019-08-01 10:03:20 +10:00
|
|
|
|
2019-07-30 11:04:02 +10:00
|
|
|
.scrollback = 256,
|
|
|
|
|
.node_margin = 80,
|
|
|
|
|
.transopts = USER_TR_TOOLTIPS,
|
|
|
|
|
.menuthreshold1 = 5,
|
|
|
|
|
.menuthreshold2 = 2,
|
|
|
|
|
.app_template = "",
|
|
|
|
|
|
|
|
|
|
/** Initialized by #UI_theme_init_default. */
|
2019-07-31 08:44:58 -06:00
|
|
|
.themes = {NULL},
|
2019-07-30 11:04:02 +10:00
|
|
|
|
|
|
|
|
/** Initialized by #uiStyleInit. */
|
2019-07-31 08:44:58 -06:00
|
|
|
.uifonts = {NULL},
|
|
|
|
|
.uistyles = {NULL},
|
2019-07-30 11:04:02 +10:00
|
|
|
|
2019-07-31 08:44:58 -06:00
|
|
|
.user_keymaps = {NULL},
|
|
|
|
|
.user_keyconfig_prefs = {NULL},
|
2019-07-30 11:04:02 +10:00
|
|
|
|
|
|
|
|
/** Initialized by #BKE_blendfile_userdef_from_defaults. */
|
2019-07-31 08:44:58 -06:00
|
|
|
.addons = {NULL},
|
2019-07-30 11:04:02 +10:00
|
|
|
|
2019-07-31 08:44:58 -06:00
|
|
|
.autoexec_paths = {NULL},
|
|
|
|
|
.user_menus = {NULL},
|
2019-07-30 11:04:02 +10:00
|
|
|
|
|
|
|
|
.keyconfigstr = "blender",
|
|
|
|
|
.undosteps = 32,
|
|
|
|
|
.undomemory = 0,
|
|
|
|
|
.gp_manhattendist = 1,
|
|
|
|
|
.gp_euclideandist = 2,
|
|
|
|
|
.gp_eraser = 25,
|
|
|
|
|
.gp_settings = 0,
|
|
|
|
|
|
|
|
|
|
/** Initialized by: #BKE_studiolight_default . */
|
|
|
|
|
.light_param = {{0}},
|
|
|
|
|
.light_ambient = {0, 0, 0},
|
|
|
|
|
|
|
|
|
|
.gizmo_flag = USER_GIZMO_DRAW,
|
|
|
|
|
.gizmo_size = 75,
|
|
|
|
|
.edit_studio_light = 0,
|
|
|
|
|
.lookdev_sphere_size = 150,
|
|
|
|
|
.vbotimeout = 120,
|
|
|
|
|
.vbocollectrate = 60,
|
|
|
|
|
.textimeout = 120,
|
|
|
|
|
.texcollectrate = 60,
|
2019-08-01 10:03:20 +10:00
|
|
|
|
|
|
|
|
/** Clamped by half the systems memory. */
|
2019-07-30 11:04:02 +10:00
|
|
|
.memcachelimit = 4096,
|
2019-08-01 10:03:20 +10:00
|
|
|
|
2019-07-30 11:04:02 +10:00
|
|
|
.prefetchframes = 0,
|
|
|
|
|
.pad_rot_angle = 15,
|
|
|
|
|
.rvisize = 25,
|
|
|
|
|
.rvibright = 8,
|
|
|
|
|
.recent_files = 10,
|
|
|
|
|
.smooth_viewtx = 200,
|
|
|
|
|
.glreslimit = 0,
|
|
|
|
|
.color_picker_type = USER_CP_CIRCLE_HSV,
|
2019-10-01 21:38:44 +03:00
|
|
|
.auto_smoothing_new = FCURVE_SMOOTH_CONT_ACCEL,
|
2019-07-30 11:04:02 +10:00
|
|
|
.ipo_new = BEZT_IPO_BEZ,
|
|
|
|
|
.keyhandles_new = HD_AUTO_ANIM,
|
|
|
|
|
.view_frame_type = ZOOM_FRAME_MODE_KEEP_RANGE,
|
|
|
|
|
.view_frame_keyframes = 0,
|
|
|
|
|
.view_frame_seconds = 0.0,
|
|
|
|
|
.widget_unit = 0, /* run-time initialized. */
|
|
|
|
|
.anisotropic_filter = 2,
|
|
|
|
|
.tablet_api = USER_TABLET_AUTOMATIC,
|
|
|
|
|
.pressure_threshold_max = 1.0,
|
|
|
|
|
.pressure_softness = 0.0,
|
2019-11-29 18:41:07 +11:00
|
|
|
.ndof_sensitivity = 4.0,
|
|
|
|
|
.ndof_orbit_sensitivity = 4.0,
|
2019-07-30 11:04:02 +10:00
|
|
|
.ndof_deadzone = 0.1,
|
2019-11-28 15:06:04 +11:00
|
|
|
.ndof_flag = (NDOF_MODE_ORBIT | NDOF_LOCK_HORIZON | NDOF_SHOULD_PAN | NDOF_SHOULD_ZOOM |
|
2019-11-30 19:20:06 +11:00
|
|
|
NDOF_SHOULD_ROTATE |
|
|
|
|
|
/* Software from the driver authors follows this convention
|
|
|
|
|
* so invert this by default, see: T67579. */
|
|
|
|
|
NDOF_ROTX_INVERT_AXIS | NDOF_ROTY_INVERT_AXIS | NDOF_ROTZ_INVERT_AXIS |
|
|
|
|
|
NDOF_PANX_INVERT_AXIS | NDOF_PANY_INVERT_AXIS | NDOF_PANZ_INVERT_AXIS |
|
|
|
|
|
NDOF_ZOOM_INVERT),
|
2019-07-30 11:04:02 +10:00
|
|
|
.image_draw_method = IMAGE_DRAW_METHOD_AUTO,
|
|
|
|
|
.glalphaclip = 0.004,
|
|
|
|
|
.autokey_mode = (AUTOKEY_MODE_NORMAL & ~AUTOKEY_ON),
|
|
|
|
|
.autokey_flag = AUTOKEY_FLAG_XYZ2RGB,
|
|
|
|
|
.text_render = 0,
|
|
|
|
|
.navigation_mode = VIEW_NAVIGATION_WALK,
|
2019-08-04 01:22:38 +10:00
|
|
|
.view_rotate_sensitivity_turntable = DEG2RAD(0.4),
|
|
|
|
|
.view_rotate_sensitivity_trackball = 1.0f,
|
2019-07-30 11:04:02 +10:00
|
|
|
|
|
|
|
|
/** Initialized by #BKE_colorband_init. */
|
|
|
|
|
.coba_weight = {0},
|
|
|
|
|
|
|
|
|
|
.sculpt_paint_overlay_col = {0, 0, 0},
|
|
|
|
|
.gpencil_new_layer_col = {0.38, 0.61, 0.78, 0.9},
|
|
|
|
|
.drag_threshold_mouse = 3,
|
|
|
|
|
.drag_threshold_tablet = 10,
|
|
|
|
|
.drag_threshold = 30,
|
|
|
|
|
.move_threshold = 2,
|
|
|
|
|
.font_path_ui = "",
|
|
|
|
|
.font_path_ui_mono = "",
|
|
|
|
|
.compute_device_type = 0,
|
|
|
|
|
.fcu_inactive_alpha = 0.25,
|
|
|
|
|
.pie_tap_timeout = 20,
|
|
|
|
|
.pie_initial_timeout = 0,
|
|
|
|
|
.pie_animation_timeout = 6,
|
|
|
|
|
.pie_menu_confirm = 0,
|
|
|
|
|
.pie_menu_radius = 100,
|
|
|
|
|
.pie_menu_threshold = 12,
|
2019-09-05 03:16:52 +10:00
|
|
|
.opensubdiv_compute_type = 0,
|
|
|
|
|
.factor_display_type = USER_FACTOR_AS_FACTOR,
|
2019-09-19 11:11:17 +02:00
|
|
|
.render_display_type = USER_RENDER_DISPLAY_WINDOW,
|
|
|
|
|
.filebrowser_display_type = USER_TEMP_SPACE_DISPLAY_WINDOW,
|
2019-09-05 03:16:52 +10:00
|
|
|
.viewport_aa = 8,
|
|
|
|
|
|
2019-07-30 11:04:02 +10:00
|
|
|
.walk_navigation =
|
|
|
|
|
{
|
|
|
|
|
.mouse_speed = 1,
|
|
|
|
|
.walk_speed = 2.5,
|
|
|
|
|
.walk_speed_factor = 5,
|
|
|
|
|
.view_height = 1.6,
|
|
|
|
|
.jump_height = 0.4,
|
|
|
|
|
.teleport_time = 0.2,
|
|
|
|
|
.flag = 0,
|
|
|
|
|
},
|
2019-09-05 03:16:52 +10:00
|
|
|
|
|
|
|
|
.space_data =
|
|
|
|
|
{
|
|
|
|
|
.section_active = USER_SECTION_INTERFACE,
|
|
|
|
|
},
|
|
|
|
|
|
UI: Remember File Browser Display Options in Preferences
This makes it so that some display related properties of the file
browser state are remembered in the Preferences. Otherwise, users often
end up doing the same set up work over and over again, so this is a
nice way to save users some work.
It's typical for other file browsers to remember their state too, so
another benefit is having a more conventional behavior, meeting user
expectations better.
Some points:
* We currently store: Window size, display type, thumbnail size,
enabled details-columns, sort options, "Show Hidden" option. More can
be added easily.
* No changes are stored to the Preferences if "Auto-save Preferences"
is disabled. This is how Quick Favorites behave too and it's a
reasonable way to make this behavior optional.
* The Preferences are only saved to permanent memory upon closing
Blender, following existing convention of Preferences and Quick
Favorites.
* If settings weren't actually changed, Preference saving is skipped.
* Only temporary file browsers save their state (invoked through
actions like open or save), not regular file browser editors. These
are usually used for different purposes and workflows.
* Removes "Show Thumbnails" Preferences option. It would need some
special handling, possibly introducing bugs. For users, this
simplifies behavior and should make things more predictable.
Left in DNA data in case we decide to bring it back.
Reviewers: brecht, #user_interface, billreynish, campbellbarton
Reviewed By: #user_interface, William Reynish, Campbell Barton, Brecht
van Lommel (quick first pass review in person)
Maniphest Tasks: T69460
Differential Revision: https://developer.blender.org/D5893
2019-09-30 18:54:11 +02:00
|
|
|
.file_space_data =
|
|
|
|
|
{
|
|
|
|
|
.display_type = FILE_VERTICALDISPLAY,
|
|
|
|
|
.thumbnail_size = 128,
|
|
|
|
|
.sort_type = FILE_SORT_ALPHA,
|
|
|
|
|
.details_flags = FILE_DETAILS_SIZE | FILE_DETAILS_DATETIME,
|
|
|
|
|
.flag = FILE_HIDE_DOT,
|
2019-10-16 12:04:56 +02:00
|
|
|
.filter_id = FILTER_ID_ALL,
|
UI: Remember File Browser Display Options in Preferences
This makes it so that some display related properties of the file
browser state are remembered in the Preferences. Otherwise, users often
end up doing the same set up work over and over again, so this is a
nice way to save users some work.
It's typical for other file browsers to remember their state too, so
another benefit is having a more conventional behavior, meeting user
expectations better.
Some points:
* We currently store: Window size, display type, thumbnail size,
enabled details-columns, sort options, "Show Hidden" option. More can
be added easily.
* No changes are stored to the Preferences if "Auto-save Preferences"
is disabled. This is how Quick Favorites behave too and it's a
reasonable way to make this behavior optional.
* The Preferences are only saved to permanent memory upon closing
Blender, following existing convention of Preferences and Quick
Favorites.
* If settings weren't actually changed, Preference saving is skipped.
* Only temporary file browsers save their state (invoked through
actions like open or save), not regular file browser editors. These
are usually used for different purposes and workflows.
* Removes "Show Thumbnails" Preferences option. It would need some
special handling, possibly introducing bugs. For users, this
simplifies behavior and should make things more predictable.
Left in DNA data in case we decide to bring it back.
Reviewers: brecht, #user_interface, billreynish, campbellbarton
Reviewed By: #user_interface, William Reynish, Campbell Barton, Brecht
van Lommel (quick first pass review in person)
Maniphest Tasks: T69460
Differential Revision: https://developer.blender.org/D5893
2019-09-30 18:54:11 +02:00
|
|
|
|
|
|
|
|
.temp_win_sizex = 1020,
|
|
|
|
|
.temp_win_sizey = 600,
|
|
|
|
|
},
|
|
|
|
|
|
2020-03-19 00:05:18 +01:00
|
|
|
.sequencer_disk_cache_dir = "",
|
|
|
|
|
.sequencer_disk_cache_compression = 0,
|
|
|
|
|
.sequencer_disk_cache_size_limit = 100,
|
|
|
|
|
.sequencer_disk_cache_flag = 0,
|
|
|
|
|
|
2019-07-30 11:04:02 +10:00
|
|
|
.runtime =
|
|
|
|
|
{
|
|
|
|
|
.is_dirty = 0,
|
|
|
|
|
},
|
|
|
|
|
};
|