diff options
author | Jeroen Bakker <jeroen@blender.org> | 2019-12-05 16:21:57 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2019-12-06 09:45:07 +0300 |
commit | 15abc9fe743e09f2ec7ef3a6bcfb8f4954bcf28c (patch) | |
tree | 49fc31a16b2e89d0fd67f8756dc164c82098a23c /source/blender/makesrna/intern/rna_userdef.c | |
parent | 601eafd104ca66e3baaa45e9ecb00989395c55d9 (diff) |
Draw: Removal of MultiSample Buffers
Multisample buffers were used for smooth line drawing. As we now have
an algorithm that doesn't need the multisample buffers we can remove
them.
The user preference for viewport multi_sampling is replaced by single
toggle overlay `use_overlay_smooth_wire`. By default this setting is
enabled as the new drawing is really quick (<1ms) and uses zero hacks.
Reviewed By: fclem
Differential Revision: https://developer.blender.org/D6367
Diffstat (limited to 'source/blender/makesrna/intern/rna_userdef.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 5d2bf161020..64bca38882f 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -5062,12 +5062,11 @@ static void rna_def_userdef_system(BlenderRNA *brna) /* OpenGL */ - /* Full scene anti-aliasing */ - prop = RNA_def_property(srna, "multi_sample", PROP_ENUM, PROP_NONE); - RNA_def_property_enum_bitflag_sdna(prop, NULL, "ogl_multisamples"); - RNA_def_property_enum_items(prop, multi_sample_levels); + /* Viewport anti-aliasing */ + prop = RNA_def_property(srna, "use_overlay_smooth_wire", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "gpu_flag", USER_GPU_FLAG_OVERLAY_SMOOTH_WIRE); RNA_def_property_ui_text( - prop, "MultiSample", "Enable OpenGL multi-sampling, only for systems that support it"); + prop, "Overlay Smooth Wires", "Enable overlay smooth wires, reducing aliasing"); RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); prop = RNA_def_property(srna, "use_edit_mode_smooth_wire", PROP_BOOLEAN, PROP_NONE); |