diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-08-30 06:47:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-08-30 06:47:27 +0300 |
commit | 2093b79ee746b15e5f55d703a1b6de60de940433 (patch) | |
tree | 956397056dc83211ee6005d68032183ca01c56a2 /release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py | |
parent | e9c2477a8463d291f19cdb45d8667ece277aa20d (diff) |
Cleanup: inline icon conditional
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py index ff2ced7704f..9228c40e13b 100644 --- a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py +++ b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py @@ -43,7 +43,10 @@ class PHYSICS_UL_dynapaint_surfaces(UIList): if surf.use_color_preview: row.prop( - surf, "show_preview", text="", emboss=False, + surf, + "show_preview", + text="", + emboss=False, icon='RESTRICT_VIEW_OFF' if surf.show_preview else 'RESTRICT_VIEW_ON' ) row.prop(surf, "is_active", text="") |