diff --git a/assets/Main Assembly V1 (2).stl b/assets/Main Assembly V1 (2).stl new file mode 100644 index 0000000..9156f99 Binary files /dev/null and b/assets/Main Assembly V1 (2).stl differ diff --git a/web_ui.py b/web_ui.py index a5e5517..15d0098 100644 --- a/web_ui.py +++ b/web_ui.py @@ -151,6 +151,15 @@ class ControlApi: def _migrate_legacy_model(self): if self.model_cache.is_file(): return + default_asset = Path(__file__).resolve().parent / "assets" / "Main Assembly V1 (2).stl" + if default_asset.is_file(): + try: + self.model_cache.parent.mkdir(exist_ok=True) + shutil.copyfile(default_asset, self.model_cache) + self.model_cache_name.write_text(default_asset.name, encoding="utf-8") + return + except Exception: + pass try: path = Path(json.loads(self.model_path.read_text(encoding="utf-8"))["path"]) if path.is_file() and path.suffix.lower() == ".stl" and path.stat().st_size <= 30 * 1024 * 1024: