UI: Fix inverted selection restrict icon

This commit is contained in:
Clément Foucault
2018-10-30 16:19:10 +01:00
parent c62fad2a9a
commit a1cdf9cc3f

View File

@@ -4013,7 +4013,7 @@ class VIEW3D_PT_object_type_visibility(Panel):
attr_v = "show_object_viewport_" f"{attr:s}"
attr_s = "show_object_select_" f"{attr:s}"
icon_s = 'RESTRICT_SELECT_OFF' if getattr(view, attr_s) else 'RESTRICT_SELECT_ON'
icon_s = 'RESTRICT_SELECT_ON' if getattr(view, attr_s) else 'RESTRICT_SELECT_OFF'
row = col.row(align=True)
row.prop(view, attr_v)