Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-10-31 10:00:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-10-31 10:00:18 +0300
commit3252ef4aca7a112fa5c2c00567c455bd27c9d963 (patch)
tree8d17d2d5a4d273feaaf12bc77bff6c77ff058887 /release/scripts/startup/bl_operators/sequencer.py
parent59b16e28d974fcab3246b174dae3088b05d9daaa (diff)
Cleanup: import functions from bpy.props
Some instances used bpy.props when the convention is to import them.
Diffstat (limited to 'release/scripts/startup/bl_operators/sequencer.py')
-rw-r--r--release/scripts/startup/bl_operators/sequencer.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/sequencer.py b/release/scripts/startup/bl_operators/sequencer.py
index ab87dc47075..9a0028d1f14 100644
--- a/release/scripts/startup/bl_operators/sequencer.py
+++ b/release/scripts/startup/bl_operators/sequencer.py
@@ -21,7 +21,11 @@
import bpy
from bpy.types import Operator
-from bpy.props import IntProperty
+from bpy.props import (
+ EnumProperty,
+ FloatProperty,
+ IntProperty,
+)
class SequencerCrossfadeSounds(Operator):
@@ -170,12 +174,12 @@ class SequencerFadesAdd(Operator):
bl_label = "Add Fades"
bl_options = {'REGISTER', 'UNDO'}
- duration_seconds: bpy.props.FloatProperty(
+ duration_seconds: FloatProperty(
name="Fade Duration",
description="Duration of the fade in seconds",
default=1.0,
min=0.01)
- type: bpy.props.EnumProperty(
+ type: EnumProperty(
items=(
('IN_OUT', 'Fade In And Out', 'Fade selected strips in and out'),
('IN', 'Fade In', 'Fade in selected strips'),