Skip to content

Commit

Permalink
Add previous_path arg (optional) to move_temp_paths...()
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Sep 5, 2019
1 parent a66e499 commit 456c7bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/classes/project_data.py
Expand Up @@ -759,7 +759,7 @@ def save(self, file_path, move_temp_files=True, make_paths_relative=True):

# Move all temp files (i.e. Blender animations) to the project folder
if move_temp_files:
self.move_temp_paths_to_project_folder(file_path)
self.move_temp_paths_to_project_folder(file_path, previous_path=self.current_filepath)

# Append version info
v = openshot.GetVersion()
Expand All @@ -778,8 +778,8 @@ def save(self, file_path, move_temp_files=True, make_paths_relative=True):
# Track unsaved changes
self.has_unsaved_changes = False

def move_temp_paths_to_project_folder(self, file_path):
""" Move all temp files (such as Thumbnails, Titles, and Blender animations) to the project folder. """
def move_temp_paths_to_project_folder(self, file_path, previous_path=None):
""" Move all temp files (such as Thumbnails, Titles, and Blender animations) to the project asset folder. """
try:
# Get project folder
new_project_folder = os.path.dirname(file_path)
Expand Down

0 comments on commit 456c7bf

Please sign in to comment.