diff options
author | Nathan Lovato <nathan@gdquest.com> | 2020-05-15 03:31:18 +0300 |
---|---|---|
committer | Dalai Felinto <dalai@blender.org> | 2020-05-29 10:53:37 +0300 |
commit | 1f2115735ee7eb3a049a2933d74e37e9b4e79345 (patch) | |
tree | b2d682d72697eb3d866bafd991e3ac587cc1e3de /power_sequencer/operators/scene_merge_from.py | |
parent | da8963ab0e483fa67460c8fd8b75a970d03b2623 (diff) |
Power Sequencer: address docstring warnings
The previous commit passed tests without warnings or errors here, but LazyDodo sent
me a log with warnings he was getting on his machine. This commit
attempts to address them.
Note: I'm not getting warnings when running unit tests here.
Diffstat (limited to 'power_sequencer/operators/scene_merge_from.py')
-rw-r--r-- | power_sequencer/operators/scene_merge_from.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/power_sequencer/operators/scene_merge_from.py b/power_sequencer/operators/scene_merge_from.py index 4e695b02..2908ebcd 100644 --- a/power_sequencer/operators/scene_merge_from.py +++ b/power_sequencer/operators/scene_merge_from.py @@ -16,7 +16,6 @@ # import bpy -from bpy.props import BoolProperty from .utils.doc import doc_name, doc_idname, doc_brief, doc_description @@ -27,7 +26,7 @@ class POWER_SEQUENCER_OT_merge_from_scene_strip(bpy.types.Operator): WARNING: Currently the operator doesn't recreate any animation data, - be careful by choosing to delete the scene after the merge. + be careful by choosing to delete the scene after the merge """ doc = { @@ -42,7 +41,7 @@ class POWER_SEQUENCER_OT_merge_from_scene_strip(bpy.types.Operator): bl_description = doc_brief(doc["description"]) bl_options = {"REGISTER", "UNDO"} - delete_scene: BoolProperty( + delete_scene: bpy.props.BoolProperty( name="Delete Strip's scene", description="Delete the SceneStrip's scene after the merging", default=True, @@ -75,7 +74,9 @@ class POWER_SEQUENCER_OT_merge_from_scene_strip(bpy.types.Operator): context.window.scene = strip_scene bpy.ops.scene.delete() context.window.scene = start_scene - self.report(type={"WARNING"}, message="Merged scenes lose all their animation data.") + self.report( + type={"WARNING"}, message="Merged scenes lose all their animation data." + ) return {"FINISHED"} |