Fix T41157

Was an issue with python interpretation error. Second part of the bug is
fixed by Campbell.
also minor UI tweak for occlusion UI.
This commit is contained in:
Antonis Ryakiotakis 2014-07-23 16:05:35 +02:00
parent 17021171f1
commit 1134ca7420
Notes: blender-bot 2023-02-14 10:18:53 +01:00
Referenced by issue #41157, GSOC 2013 Paint bugs
2 changed files with 6 additions and 6 deletions

View File

@ -170,7 +170,7 @@ def brush_texpaint_common(panel, context, layout, brush, settings, projpaint=Fal
panel.prop_unified_size(row, context, brush, "size", slider=True, text="Radius")
panel.prop_unified_size(row, context, brush, "use_pressure_size")
row = col.row(align=True)
row = col.row(align=True)
if capabilities.has_space_attenuation:
row.prop(brush, "use_space_attenuation", toggle=True, icon_only=True)

View File

@ -417,11 +417,11 @@ class USERPREF_PT_system(Panel):
col.prop(system, "use_gpu_mipmap")
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="")
if system.is_occlusion_query_supported():
col.separator()
col.label(text="Selection")
col.prop(system, "select_method", text="")
col.separator()