[Bf-blender-cvs] [c06eb4ab941] master: Fix T66414: Brush Color Flip from keyboard (X) does not update color picker panel

Philipp Oeser noreply at git.blender.org
Thu Jul 4 13:41:04 CEST 2019


Commit: c06eb4ab94113086691779e78e970b85941651a8
Author: Philipp Oeser
Date:   Thu Jul 4 13:12:42 2019 +0200
Branches: master
https://developer.blender.org/rBc06eb4ab94113086691779e78e970b85941651a8

Fix T66414: Brush Color Flip from keyboard (X) does not update color picker panel

Reviewers: brecht

Maniphest Tasks: T66414

Differential Revision: https://developer.blender.org/D5181

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

M	source/blender/editors/space_image/space_image.c

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

diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c
index 6bf79711ae5..e8116193c1f 100644
--- a/source/blender/editors/space_image/space_image.c
+++ b/source/blender/editors/space_image/space_image.c
@@ -843,6 +843,11 @@ static void image_buttons_region_listener(wmWindow *UNUSED(win),
         ED_region_tag_redraw(ar);
       }
       break;
+    case NC_BRUSH:
+      if (wmn->action == NA_EDITED) {
+        ED_region_tag_redraw(ar);
+      }
+      break;
   }
 }
 
@@ -946,6 +951,11 @@ static void image_header_region_listener(wmWindow *UNUSED(win),
           break;
       }
       break;
+    case NC_BRUSH:
+      if (wmn->action == NA_EDITED) {
+        ED_region_tag_redraw(ar);
+      }
+      break;
   }
 }



More information about the Bf-blender-cvs mailing list