Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2019-05-22 19:18:44 +0300
committerDalai Felinto <dfelinto@gmail.com>2019-05-22 19:22:02 +0300
commit6539cf319924a6a5bb473898dc343fd2485b2800 (patch)
treec41ea62fe92fe8b8ba1d67551c93c9dda8181cab /release/scripts/startup/bl_ui/properties_object.py
parent5397d8d268244c34ecab94f89885e64925acc50e (diff)
Visibility panel: Use "toggle" keyword
No functional nor visual change. This is a partial revert of 0910932e71d2. The toggle option was introduced on 6640bcca7422. This allow us to simplify the outliner draw code so it uses the icon as defined in the RNA (as oppose to get the value there once again).
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_object.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_object.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py
index aeda8d8648a..526ec17f2cb 100644
--- a/release/scripts/startup/bl_ui/properties_object.py
+++ b/release/scripts/startup/bl_ui/properties_object.py
@@ -396,11 +396,11 @@ class OBJECT_PT_visibility(ObjectButtonsPanel, Panel):
ob = context.object
col = flow.column()
- col.prop(ob, "hide_viewport", text="Show in Viewports", invert_checkbox=True)
+ col.prop(ob, "hide_viewport", text="Show in Viewports", toggle=False, invert_checkbox=True)
col = flow.column()
- col.prop(ob, "hide_render", text="Show in Renders", invert_checkbox=True)
+ col.prop(ob, "hide_render", text="Show in Renders", toggle=False, invert_checkbox=True)
col = flow.column()
- col.prop(ob, "hide_select", text="Selectable", invert_checkbox=True)
+ col.prop(ob, "hide_select", text="Selectable", toggle=False, invert_checkbox=True)
class OBJECT_PT_custom_props(ObjectButtonsPanel, PropertyPanel, Panel):