Add SnapForm panels, preferences, properties, and runtime management
- Implemented RuntimeModelsPanel and DebugPanel for UI integration in Blender. - Created SnapFormPreferences to manage user settings for storage and runtime configuration. - Defined SnapFormSettings to hold various properties related to input, model selection, and export options. - Developed runtime management functions for installation, model downloading, and reconstruction commands. - Added status bar functionality to display job progress and status in the Blender UI. - Implemented worker script for handling model downloads and depth reconstruction tasks. - Introduced unit tests for download progress reporting and image depth extraction functionalities.
This commit is contained in:
8
pack.py
8
pack.py
@@ -4,7 +4,7 @@ from zipfile import ZIP_DEFLATED, ZipFile
|
||||
|
||||
|
||||
PROJECT_ROOT = Path(__file__).resolve().parent
|
||||
SOURCE_DIR = PROJECT_ROOT / "src" / "omoo_da3"
|
||||
SOURCE_DIR = PROJECT_ROOT / "src" / "snapform"
|
||||
DIST_DIR = PROJECT_ROOT / "dist"
|
||||
|
||||
|
||||
@@ -12,7 +12,11 @@ def build_extension():
|
||||
manifest = tomllib.loads(
|
||||
(SOURCE_DIR / "blender_manifest.toml").read_text(encoding="utf-8")
|
||||
)
|
||||
output_path = DIST_DIR / f"{manifest['id']}-{manifest['version']}.zip"
|
||||
blender_version = manifest["blender_version_min"].split(".")
|
||||
blender_tag = f"b{blender_version[0]}{blender_version[1]}"
|
||||
output_path = DIST_DIR / (
|
||||
f"{manifest['name']}.v{manifest['version']}.{blender_tag}.zip"
|
||||
)
|
||||
DIST_DIR.mkdir(exist_ok=True)
|
||||
|
||||
with ZipFile(output_path, "w", ZIP_DEFLATED) as archive:
|
||||
|
||||
Reference in New Issue
Block a user