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:
authorCampbell Barton <ideasman42@gmail.com>2019-02-06 10:18:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-06 10:18:54 +0300
commit2d5e2de88b9cc9837ad4c7e8c16809303ed16aa1 (patch)
tree0a04de484923e723591796393b765384dc58b499 /source/blender
parented53c8ea762225f32caf624f7322cf264199d469 (diff)
Cleanup: remove unused toolbox delay preferences
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenloader/intern/versioning_userdef.c4
-rw-r--r--source/blender/makesdna/DNA_userdef_types.h2
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c13
3 files changed, 1 insertions, 18 deletions
diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c
index 6fa86a06e06..c02f5638452 100644
--- a/source/blender/blenloader/intern/versioning_userdef.c
+++ b/source/blender/blenloader/intern/versioning_userdef.c
@@ -149,10 +149,6 @@ void BLO_version_defaults_userpref_blend(Main *bmain, UserDef *userdef)
userdef->menuthreshold1 = 5;
userdef->menuthreshold2 = 2;
}
- if (userdef->tb_leftmouse == 0) {
- userdef->tb_leftmouse = 5;
- userdef->tb_rightmouse = 5;
- }
if (userdef->mixbufsize == 0) userdef->mixbufsize = 2048;
if (userdef->autokey_mode == 0) {
/* 'add/replace' but not on */
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h
index 80f9fff3e21..23bd962760b 100644
--- a/source/blender/makesdna/DNA_userdef_types.h
+++ b/source/blender/makesdna/DNA_userdef_types.h
@@ -639,7 +639,7 @@ typedef struct UserDef {
short gp_manhattendist, gp_euclideandist, gp_eraser;
/** #eGP_UserdefSettings. */
short gp_settings;
- short tb_leftmouse, tb_rightmouse;
+ char _pad13[4];
struct SolidLight light_param[4];
float light_ambient[3];
char _pad3[4];
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index 578779e18f5..35e7c286471 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -3829,19 +3829,6 @@ static void rna_def_userdef_view(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Prompt Quit",
"Ask for confirmation when quitting with unsaved changes");
- /* Toolbox click-hold delay */
- prop = RNA_def_property(srna, "open_left_mouse_delay", PROP_INT, PROP_NONE);
- RNA_def_property_int_sdna(prop, NULL, "tb_leftmouse");
- RNA_def_property_range(prop, 1, 40);
- RNA_def_property_ui_text(prop, "Hold LMB Open Toolbox Delay",
- "Time in 1/10 seconds to hold the Left Mouse Button before opening the toolbox");
-
- prop = RNA_def_property(srna, "open_right_mouse_delay", PROP_INT, PROP_NONE);
- RNA_def_property_int_sdna(prop, NULL, "tb_rightmouse");
- RNA_def_property_range(prop, 1, 40);
- RNA_def_property_ui_text(prop, "Hold RMB Open Toolbox Delay",
- "Time in 1/10 seconds to hold the Right Mouse Button before opening the toolbox");
-
prop = RNA_def_property(srna, "show_column_layout", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_PLAINMENUS);
RNA_def_property_ui_text(prop, "Toolbox Column Layout", "Use a column layout for toolbox");