diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-03-04 21:15:18 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-03-04 21:18:12 +0300 |
commit | 89db684d82f77d41f24335a7e90a9db320d1dfe0 (patch) | |
tree | 370ee3021cbf02d48cc84220e16c80b1f3b071ab /source/blender/makesrna | |
parent | 81ae7773e74a2f393b0ecf1818335c2b46668e4a (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.c | 6 |
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"); |