[Bf-blender-cvs] [95d4a6bdb1f] blender2.8: Fix swapped on/off icons for brush overlays

Dalai Felinto noreply at git.blender.org
Wed Oct 31 23:29:25 CET 2018


Commit: 95d4a6bdb1f0fbd433bf2725e72a255974ebe603
Author: Dalai Felinto
Date:   Wed Oct 31 19:12:33 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB95d4a6bdb1f0fbd433bf2725e72a255974ebe603

Fix swapped on/off icons for brush overlays

This is the panels that you see when you invoke the painting tools from
the Image Editor.

If you do so from the viewport, the panels are different (and have it
properly swapped already, although the panels should be the same as
those ones I suppose - that said I like the one from the image editor
better, in regard to the overlay panel).

===================================================================

M	release/scripts/startup/bl_ui/space_image.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index 411e931cb0e..9abf4519bf6 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -874,7 +874,7 @@ class IMAGE_PT_tools_brush_overlay(BrushButtonsPanel, Panel):
             "use_cursor_overlay",
             text="",
             toggle=True,
-            icon='RESTRICT_VIEW_OFF' if brush.use_cursor_overlay else 'RESTRICT_VIEW_ON',
+            icon='RESTRICT_VIEW_ON' if brush.use_cursor_overlay else 'RESTRICT_VIEW_OFF',
         )
 
         sub = row.row(align=True)
@@ -890,7 +890,7 @@ class IMAGE_PT_tools_brush_overlay(BrushButtonsPanel, Panel):
                 "use_primary_overlay",
                 text="",
                 toggle=True,
-                icon='RESTRICT_VIEW_OFF' if brush.use_primary_overlay else 'RESTRICT_VIEW_ON',
+                icon='RESTRICT_VIEW_ON' if brush.use_primary_overlay else 'RESTRICT_VIEW_OFF',
             )
 
         sub = row.row(align=True)
@@ -906,7 +906,7 @@ class IMAGE_PT_tools_brush_overlay(BrushButtonsPanel, Panel):
                 "use_secondary_overlay",
                 text="",
                 toggle=True,
-                icon='RESTRICT_VIEW_OFF' if brush.use_secondary_overlay else 'RESTRICT_VIEW_ON',
+                icon='RESTRICT_VIEW_ON' if brush.use_secondary_overlay else 'RESTRICT_VIEW_OFF',
             )
 
         sub = row.row(align=True)



More information about the Bf-blender-cvs mailing list