|
2 | 2 | "name": "Blender Manager",
|
3 | 3 | "description": "Essential Blender addon for Blender Manager.",
|
4 | 4 | "author": "verlorengest",
|
5 |
| - "version": (1, 0, 2), |
| 5 | + "version": (1, 0, 3), |
6 | 6 | "blender": (4, 2, 0), # 4.0.0 +
|
7 | 7 | "location": "File > External Tools > Blender Manager",
|
8 | 8 | "category": "System",
|
|
14 | 14 | import time
|
15 | 15 | from bpy.app.handlers import persistent
|
16 | 16 | from . import blender_manager_operator
|
17 |
| -from .blender_manager_operator import load_autosaved_projects, activate_autosave, restart_autosave |
| 17 | +from .blender_manager_operator import load_autosave_settings |
| 18 | + |
18 | 19 |
|
19 | 20 |
|
20 | 21 |
|
@@ -137,25 +138,7 @@ def on_load_post_handler(dummy):
|
137 | 138 | project_path = filepath
|
138 | 139 | project_open_time = current_time
|
139 | 140 | print(f"[Blender Manager] Project loaded: {project_path} at {time.ctime(project_open_time)}")
|
140 |
| - |
141 |
| - autosaved_projects = load_autosaved_projects() |
142 |
| - if filepath in autosaved_projects: |
143 |
| - autosave_data = autosaved_projects[filepath] |
144 |
| - bpy.context.scene.auto_saver_interval = autosave_data['autosave_interval'] |
145 |
| - bpy.context.scene.auto_saver_directory = autosave_data['autosave_directory'] |
146 |
| - bpy.context.scene.auto_saver_unique_names = autosave_data['autosave_unique_names'] |
147 |
| - restart_autosave() |
148 |
| - print(f"[Blender Manager] Autosave settings applied for project: {filepath}") |
149 |
| - |
150 |
| - if not bpy.context.scene.auto_saver_running: |
151 |
| - bpy.context.scene.auto_saver_running = True |
152 |
| - result = bpy.ops.wm.auto_saver_operator('INVOKE_DEFAULT') |
153 |
| - print(f"[Blender Manager] AutoSaver operator started: {result}") |
154 |
| - else: |
155 |
| - print("[Blender Manager] AutoSaver is already running.") |
156 |
| - else: |
157 |
| - print("[Blender Manager] No autosave settings found for this project.") |
158 |
| - |
| 141 | + load_autosave_settings() |
159 | 142 | project_path = filepath
|
160 | 143 | project_open_time = current_time
|
161 | 144 | print(f"[Blender Manager] Project loaded: {project_path} at {time.ctime(project_open_time)}")
|
@@ -199,11 +182,6 @@ def register():
|
199 | 182 | project_open_time = time.time()
|
200 | 183 | print(f"[Blender Manager] Existing project detected: {project_path} at {time.ctime(project_open_time)}")
|
201 | 184 |
|
202 |
| - autosaved_projects = load_autosaved_projects() |
203 |
| - if project_path in autosaved_projects: |
204 |
| - autosave_data = autosaved_projects[project_path] |
205 |
| - activate_autosave(autosave_data) |
206 |
| - print(f"[Blender Manager] Autosave settings applied for project: {project_path}") |
207 | 185 | else:
|
208 | 186 | project_path = None
|
209 | 187 | project_open_time = time.time()
|
|
0 commit comments