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:
authorClément Foucault <foucault.clem@gmail.com>2019-03-04 21:15:18 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-03-04 21:18:12 +0300
commit89db684d82f77d41f24335a7e90a9db320d1dfe0 (patch)
tree370ee3021cbf02d48cc84220e16c80b1f3b071ab /source/blender/makesrna
parent81ae7773e74a2f393b0ecf1818335c2b46668e4a (diff)
Preferences: Add option to disable edit-mode wire Antialiasing
Requested by some users who prefer old wireframe precision. Smooth wires are still enabled by defaults as they don't have a noticeable perf impact. Application restart is needed for changes to take effects.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index cf79e4eec4b..9571fe9a4b3 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -4408,6 +4408,12 @@ static void rna_def_userdef_system(BlenderRNA *brna)
"Enable OpenGL multi-sampling, only for systems that support it, requires restart");
RNA_def_property_update(prop, 0, "rna_userdef_dpi_update");
+ prop = RNA_def_property(srna, "use_edit_mode_smooth_wire", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "uiflag2", USER_EDIT_MODE_SMOOTH_WIRE);
+ RNA_def_property_ui_text(prop, "Edit-Mode Smooth Wires",
+ "Enable Edit-Mode edge smoothing, reducing aliasing, requires restart");
+ RNA_def_property_update(prop, 0, "rna_userdef_dpi_update");
+
/* grease pencil anti-aliasing */
prop = RNA_def_property(srna, "gpencil_multi_sample", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "gpencil_multisamples");