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")