From 4db6305154a29dafe0cbc0074e5121c2d09b43e7 Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Thu, 8 Jan 2026 04:16:10 +0000 Subject: [PATCH] feat(assets): add support for syncing MaterialX asset directories --- scripts/dev_commands.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/dev_commands.py b/scripts/dev_commands.py index 93ffbf6..74ab06f 100755 --- a/scripts/dev_commands.py +++ b/scripts/dev_commands.py @@ -415,6 +415,10 @@ def _sync_assets(build_dir: str, dry_run: bool) -> None: ("scripts/models", ["*.stl", "*.obj", "*.fbx"]), ("config", ["*.json"]), ] + asset_trees = [ + "MaterialX/libraries", + "MaterialX/resources", + ] print("\n=== Syncing Assets ===") @@ -438,6 +442,15 @@ def _sync_assets(build_dir: str, dry_run: bool) -> None: if not dry_run: shutil.copy2(src_file, dst_file) + for src_dir in asset_trees: + src_path = project_root / src_dir + dst_path = build_path / src_dir + if not src_path.exists(): + continue + print(f" {src_path} -> {dst_path}") + if not dry_run: + shutil.copytree(src_path, dst_path, dirs_exist_ok=True) + print("=== Assets Synced ===\n")