From 456c7bfaf10fe3415a6d71b5256d9ee243b5604a Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Thu, 5 Sep 2019 06:59:17 -0400 Subject: [PATCH] Add previous_path arg (optional) to move_temp_paths...() --- src/classes/project_data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/classes/project_data.py b/src/classes/project_data.py index ca16aa1503..52921eadfc 100644 --- a/src/classes/project_data.py +++ b/src/classes/project_data.py @@ -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() @@ -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)