[Bf-extensions-cvs] [89bfa619] master: Fix potential error in case no strip would be to be exported.

Bastien Montagne noreply at git.blender.org
Mon Jul 31 11:13:44 CEST 2017


Commit: 89bfa619831c7bb8c603e6fbc01cffd4530a1e16
Author: Bastien Montagne
Date:   Mon Jul 31 11:12:28 2017 +0200
Branches: master
https://developer.blender.org/rBAC89bfa619831c7bb8c603e6fbc01cffd4530a1e16

Fix potential error in case no strip would be to be exported.

Reported by lijenstina over IRC, thanks.

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

M	sequencer_tools/__init__.py
M	sequencer_tools/export_strips.py

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

diff --git a/sequencer_tools/__init__.py b/sequencer_tools/__init__.py
index 0d9ea63b..73e53461 100644
--- a/sequencer_tools/__init__.py
+++ b/sequencer_tools/__init__.py
@@ -19,7 +19,7 @@
 bl_info = {
     "name": "Sequencer Tools",
     "author": "mont29",
-    "version": (0, 0, 4),
+    "version": (0, 0, 5),
     "blender": (2, 78, 0),
     "location": "Sequencer menus/UI",
     "description": "Various Sequencer tools.",
diff --git a/sequencer_tools/export_strips.py b/sequencer_tools/export_strips.py
index 1b751e7d..e3a6482f 100644
--- a/sequencer_tools/export_strips.py
+++ b/sequencer_tools/export_strips.py
@@ -48,6 +48,8 @@ class SEQExportStrip(bpy.types.Operator):
                 start = strip.frame_final_start
             if end is None or strip.frame_final_end > end:
                 end = strip.frame_final_end
+        if start is None or end is None:
+            return {'CANCELLED'}
         sce.frame_start = start
         sce.frame_end = end



More information about the Bf-extensions-cvs mailing list