diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-07-23 17:24:07 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-07-23 17:26:08 +0400 |
commit | 17021171f1b544aaa89d4776736255d8753e239c (patch) | |
tree | c5e61cf797b54ba77e65d05263503365a9acfc47 /release/scripts/startup/bl_ui/space_userpref.py | |
parent | cf9d5db75b4c8599b6669a49c40e40938ac6a34b (diff) |
Occlusion Query based selection.
This patch creates an interface for selection mechanisms in opengl. This
makes it possible to switch between occlusion query based or select
rendermode based selection transparently.
This is really useful on graphics drivers that do not accelerate the
select rendermode path (some ATI cards are notorious for this, and the
new path is used by default there), since occlusion queries are always
hardware accelerated due to their use in games.
The option can be found under system - selection. Auto just enables
occlusion queries for ATI users while the rest of the options enforce
one of the two methods always.
There is just one known change, previous code enforced nearest bone to
always get selected, even when mouse selecting near the same position, I
couldn't replicate the behaviour though.
patch by me with edits and review by Campbell.
Thanks!
Diffstat (limited to 'release/scripts/startup/bl_ui/space_userpref.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index cba6f065a6f..bbcd541d265 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -418,6 +418,12 @@ class USERPREF_PT_system(Panel): col.prop(system, "use_16bit_textures") col.separator() + col.label(text="Selection") + sub = col.column() + sub.active = system.is_occlusion_query_supported() + sub.prop(system, "select_method", text="") + + col.separator() col.label(text="Anisotropic Filtering") col.prop(system, "anisotropic_filter", text="") |