[Bf-blender-cvs] [c6ba9413393] master: Fix T72409: Remove references to Unified use_pressure_size and use_pressure_strength

Pablo Dobarro noreply at git.blender.org
Fri Dec 13 21:33:36 CET 2019


Commit: c6ba9413393465a5ca336d053723a63b9ee76e45
Author: Pablo Dobarro
Date:   Fri Dec 13 03:55:15 2019 +0100
Branches: master
https://developer.blender.org/rBc6ba9413393465a5ca336d053723a63b9ee76e45

Fix T72409: Remove references to Unified use_pressure_size and use_pressure_strength

This was causing errors to show in the terminal.

Reviewed By: campbellbarton

Maniphest Tasks: T72409

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

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

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 5af9fed83f8..da1df5bd660 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -605,11 +605,11 @@ class _draw_tool_settings_context_mode:
 
                     row = layout.row(align=True)
                     UnifiedPaintPanel.prop_unified_size(row, context, brush, "size", slider=True)
-                    UnifiedPaintPanel.prop_unified_size(row, context, brush, "use_pressure_size", text="")
+                    row.prop(brush, "use_pressure_size", text="")
 
                     row = layout.row(align=True)
                     UnifiedPaintPanel.prop_unified_strength(row, context, brush, "strength", slider=True)
-                    UnifiedPaintPanel.prop_unified_strength(row, context, brush, "use_pressure_strength", text="")
+                    row.prop(brush, "use_pressure_strength", text="")
 
     @staticmethod
     def PAINT(context, layout, tool):



More information about the Bf-blender-cvs mailing list