[Bf-blender-cvs] [23f952d7d7b] sculpt-dev: fix python script error

Joseph Eagar noreply at git.blender.org
Fri Sep 24 11:44:25 CEST 2021


Commit: 23f952d7d7b5351e56f88bbbd15fa7f176ac3d0e
Author: Joseph Eagar
Date:   Fri Sep 24 02:44:13 2021 -0700
Branches: sculpt-dev
https://developer.blender.org/rB23f952d7d7b5351e56f88bbbd15fa7f176ac3d0e

fix python script error

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

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

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

diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py
index 5be234478c7..b99e071835a 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -126,7 +126,6 @@ class UnifiedPaintPanel:
         return None
 
     @staticmethod
-
     def get_channel(context, brush, prop_name, toolsettings_only=False):
         ch = brush.channels.channels[prop_name]
 
@@ -138,6 +137,7 @@ class UnifiedPaintPanel:
 
         return ch
 
+    @staticmethod
     def get_channel_value(context, brush, prop_name, toolsettings_only=False):
         ch = brush.channels.channels[prop_name]
 
@@ -162,13 +162,14 @@ class UnifiedPaintPanel:
         elif ch.type == "CURVE":
             return ch.curve
 
+    @staticmethod
     def channel_unified(layout, context, brush, prop_name, icon='NONE', pressure=True, text=None,
                         slider=False, header=False, show_reorder=False, expand=None, toolsettings_only=False, ui_editing=True):
         """ Generalized way of adding brush options to the UI,
             along with their pen pressure setting and global toggle, if they exist. """
 
         if context.mode != "SCULPT":
-            return self.prop_unified(layout, context, brush, prop_name, icon=icon, text=text, slider=slider, header=header, expand=expand)
+            return UnifiedPaintPanel.prop_unified(layout, context, brush, prop_name, icon=icon, text=text, slider=slider, header=header, expand=expand)
 
         if prop_name == "size":
             prop_name = "radius"



More information about the Bf-blender-cvs mailing list