Skip to content

Commit

Permalink
Animated Titles: Don't add files if canceled
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Sep 17, 2019
1 parent 6821874 commit 1af03e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/windows/views/blender_listview.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def update_image(self, image_path):

# get the pixbuf
image = QImage(image_path)
scaled_image = image.scaledToHeight(self.win.imgPreview.height(), Qt.SmoothTransformation);
scaled_image = image.scaledToHeight(self.win.imgPreview.height(), Qt.SmoothTransformation)
pixmap = QPixmap.fromImage(scaled_image)
self.win.imgPreview.setPixmap(pixmap)

Expand Down Expand Up @@ -798,12 +798,12 @@ def Render(self, blend_file_path, target_script, preview_mode=False):
self.blender_error_with_data.emit(_("No frame was found in the output from Blender"))

# Done with render (i.e. close window)
elif not self.preview_mode:
# only close window if in 'render' mode
elif self.is_running and not self.preview_mode:
# only add file to project data if in 'render' mode and not canceled
self.finished.emit()

# Thread finished
if self.is_running == False:
if not self.is_running:
# close window if thread was killed
self.closed.emit()

Expand Down

0 comments on commit 1af03e2

Please sign in to comment.