[Bf-blender-cvs] [14c160334de] master: Cleanup: remove duplicate information in docstring

Campbell Barton noreply at git.blender.org
Sat Sep 14 21:43:52 CEST 2019


Commit: 14c160334de15c6898fd20127bcaa262d66cfe77
Author: Campbell Barton
Date:   Sun Sep 15 05:42:04 2019 +1000
Branches: master
https://developer.blender.org/rB14c160334de15c6898fd20127bcaa262d66cfe77

Cleanup: remove duplicate information in docstring

No need to document all options in the doc-string
since each option has it's own description.

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

M	release/scripts/startup/bl_operators/sequencer.py

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

diff --git a/release/scripts/startup/bl_operators/sequencer.py b/release/scripts/startup/bl_operators/sequencer.py
index 944bfa1ffbe..32a94349b4b 100644
--- a/release/scripts/startup/bl_operators/sequencer.py
+++ b/release/scripts/startup/bl_operators/sequencer.py
@@ -139,13 +139,9 @@ class SequencerDeinterlaceSelectedMovies(Operator):
 
 
 class SequencerFadesClear(Operator):
-    """Removes fade animation from selected sequences.
-    Removes opacity or volume animation on selected sequences and resets the
-    property to a value of 1.0. Works on all types of sequences.
-    """
+    """Removes fade animation from selected sequences"""
     bl_idname = "sequencer.fades_clear"
     bl_label = "Clear Fades"
-    bl_description = "Removes fade animation from selected sequences."
     bl_options = {'REGISTER', 'UNDO'}
 
     @classmethod
@@ -168,17 +164,9 @@ class SequencerFadesClear(Operator):
 
 
 class SequencerFadesAdd(Operator):
-    """Adds or updates a fade animation for either visual or audio strips.
-    Fade options:
-    - In, Out, In and Out create a fade animation of the given duration from
-    the start of the sequence, to the end of the sequence, or on boths sides
-    - From playhead: the fade animation goes from the start of sequences under the playhead to the playhead
-    - To playhead: the fade animation goes from the playhead to the end of sequences under the playhead
-    By default, the duration of the fade is 1 second.
-    """
+    """Adds or updates a fade animation for either visual or audio strips"""
     bl_idname = "sequencer.fades_add"
     bl_label = "Add Fades"
-    bl_description = "Adds or updates a fade animation for either visual or audio strips."
     bl_options = {'REGISTER', 'UNDO'}
 
     duration_seconds: bpy.props.FloatProperty(
@@ -195,7 +183,7 @@ class SequencerFadesAdd(Operator):
             ('CURSOR_TO', 'To Playhead', 'Fade from the start of sequences under the time cursor to the current frame'),
         ),
         name="Fade type",
-        description="Fade in, out, both in and out, to, or from the playhead. Default is both in and out.",
+        description="Fade in, out, both in and out, to, or from the playhead. Default is both in and out",
         default='IN_OUT')
 
     @classmethod



More information about the Bf-blender-cvs mailing list