Nodes: change node auto offset default from 80 to 40
This was discussed in the last workshop. Pull Request: https://projects.blender.org/blender/blender/pulls/121974
This commit is contained in:
parent
429c3f3c7f
commit
528d946858
@ -78,7 +78,7 @@ const UserDef U_default = {
|
||||
.virtual_pixel = 0,
|
||||
|
||||
.scrollback = 256,
|
||||
.node_margin = 80,
|
||||
.node_margin = 40,
|
||||
.node_preview_res = 120,
|
||||
.transopts = USER_TR_TOOLTIPS,
|
||||
.menuthreshold1 = 5,
|
||||
|
@ -29,7 +29,7 @@ extern "C" {
|
||||
|
||||
/* Blender file format version. */
|
||||
#define BLENDER_FILE_VERSION BLENDER_VERSION
|
||||
#define BLENDER_FILE_SUBVERSION 41
|
||||
#define BLENDER_FILE_SUBVERSION 42
|
||||
|
||||
/* Minimum Blender version that supports reading file written with the current
|
||||
* version. Older Blender versions will test this and cancel loading the file, showing a warning to
|
||||
|
@ -954,6 +954,13 @@ void blo_do_versions_userdef(UserDef *userdef)
|
||||
BKE_preferences_extension_repo_add_default_user(userdef);
|
||||
}
|
||||
|
||||
if (!USER_VERSION_ATLEAST(402, 42)) {
|
||||
/* 80 was the old default. */
|
||||
if (userdef->node_margin == 80) {
|
||||
userdef->node_margin = 40;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Always bump subversion in BKE_blender_version.h when adding versioning
|
||||
* code here, and wrap it inside a USER_VERSION_ATLEAST check.
|
||||
|
Loading…
Reference in New Issue
Block a user