diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-13 05:15:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-13 05:32:10 +0300 |
commit | a4b6ef30dc84358623eb94c0589962de20848d64 (patch) | |
tree | 8afe32657659fd5876605e8c52416b42b29b3375 /release/scripts/startup/bl_ui/properties_grease_pencil_common.py | |
parent | d6e6a0f90603bb730e1f8eecbae6b3100fc9f960 (diff) |
Cleanup: redundant staticmethod use
staticmethod shouldn't be used unless it's necessary,
in that case a comment should be included especially when
subclassing non-staticmethods from RNA.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_grease_pencil_common.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py index 6b52ab5cad2..774947654d1 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -88,7 +88,6 @@ class AnnotationDrawingToolsPanel: def poll(cls, context): return True - @staticmethod def draw(self, context): layout = self.layout @@ -160,7 +159,6 @@ class GreasePencilStrokeEditPanel: gpd = context.gpencil_data return bool(context.editable_gpencil_strokes) and bool(gpd.use_stroke_edit_mode) - @staticmethod def draw(self, context): layout = self.layout @@ -245,7 +243,6 @@ class GreasePencilStrokeSculptPanel: bl_label = "Sculpt Strokes" bl_category = "Tools" - @staticmethod def draw(self, context): layout = self.layout layout.use_property_split = True @@ -274,7 +271,6 @@ class GreasePencilSculptOptionsPanel: return bool(tool in {'SMOOTH', 'RANDOMIZE', 'SMOOTH'}) - @staticmethod def draw(self, context): layout = self.layout layout.use_property_split = True @@ -305,7 +301,6 @@ class GreasePencilAppearancePanel: ob = context.active_object return ob and ob.type == 'GPENCIL' - @staticmethod def draw(self, context): layout = self.layout layout.use_property_split = True @@ -679,12 +674,10 @@ class AnnotationDataPanel: else: return True - @staticmethod def draw_header(self, context): if context.space_data.type not in {'VIEW_3D', 'TOPBAR'}: self.layout.prop(context.space_data, "show_annotation", text="") - @staticmethod def draw(self, context): layout = self.layout layout.use_property_decorate = False @@ -769,12 +762,10 @@ class AnnotationOnionSkin: return True - @staticmethod def draw_header(self, context): gpl = context.active_gpencil_layer self.layout.prop(gpl, "use_annotation_onion_skinning", text="") - @staticmethod def draw(self, context): layout = self.layout layout.use_property_decorate = False @@ -811,7 +802,6 @@ class GreasePencilToolsPanel: return (context.gpencil_data is not None) - @staticmethod def draw(self, context): layout = self.layout @@ -838,7 +828,6 @@ class GreasePencilToolsPanel: class GreasePencilMaterialsPanel: # Mix-in, use for properties editor and top-bar. - @staticmethod def draw(self, context): layout = self.layout show_full_ui = (self.bl_space_type == 'PROPERTIES') |