Skip to content

Commit ec29c52

Browse files
committed
fix(text3d): use standalone mathutils module instead of bpy.mathutils for bpy 5.x
In bpy 5.x, mathutils is a separate module and can no longer be accessed via bpy.mathutils. Import it directly with 'import mathutils'. Also includes pyproject.toml updates across all packages that flatten optional-dependencies into main dependencies for simpler installs.
1 parent d1e0b4b commit ec29c52

18 files changed

Lines changed: 106 additions & 75 deletions

File tree

Animator3D/pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ dependencies = [
1515
"click>=8.1.0",
1616
"rich>=13.0.0",
1717
"rich-click>=1.8.0",
18-
# bpy >=4.5.9 cobre todas as versões de Python usadas no monorepo (3.11–3.13)
19-
"bpy>=4.5.9",
18+
# bpy 5.1+ requer Python 3.13
19+
"bpy>=5.1.0",
20+
"pytest>=7.4.0",
21+
"ruff>=0.11.0",
2022
]
2123

22-
[project.optional-dependencies]
23-
dev = ["pytest>=7.4.0", "ruff>=0.11.0"]
24-
2524
[project.scripts]
2625
animator3d = "animator3d.cli:main"
2726

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"timestamp": 1777736713.350855,
3+
"prompt": "equirectangular 360 degree panorama, hdri environment map, full spherical view, no visible seams at edges, no borders, no frame, no text, no watermark, céu azul com nuvens fofas, dia claro, horizonte de montanhas",
4+
"params": {
5+
"seed": 4256005351,
6+
"prompt_final": "equirectangular 360 degree panorama, hdri environment map, full spherical view, no visible seams at edges, no borders, no frame, no text, no watermark, céu azul com nuvens fofas, dia claro, horizonte de montanhas",
7+
"prompt": "equirectangular 360 degree panorama, hdri environment map, full spherical view, no visible seams at edges, no borders, no frame, no text, no watermark, céu azul com nuvens fofas, dia claro, horizonte de montanhas",
8+
"negative_prompt": "",
9+
"guidance_scale": 3.5,
10+
"num_inference_steps": 28,
11+
"width": 2048,
12+
"height": 1024,
13+
"cfg_scale": 3.5,
14+
"lora_strength": 1.0
15+
},
16+
"image_path": "sky/sky.png",
17+
"filename": "sky.png"
18+
}
1.73 MB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"version": "2.0",
3+
"generator": "terrain3d",
4+
"model_id": "xandergos/terrain-diffusion-30m",
5+
"terrain": {
6+
"size": 512,
7+
"world_size": 128.0,
8+
"max_height": 30.0,
9+
"height_min": 0.0,
10+
"height_max": 1.0,
11+
"height_mean": 0.056651444600466075,
12+
"height_std": 0.20016688205061747
13+
},
14+
"rivers": [],
15+
"lakes": [],
16+
"lake_planes": [],
17+
"stats": {
18+
"generation_time_seconds": 86.044
19+
},
20+
"prompt": "colinas rochosas com vegetação rasteira, terreno de RPG"
21+
}
6.97 KB
Loading

GameAssets/pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ dependencies = [
1818
"textual>=3.0",
1919
"Pillow>=10.0",
2020
"gamedev-shared @ file:../Shared",
21+
"bpy>=5.1.0",
22+
"pytest>=7.4.0",
23+
"pytest-cov>=4.0.0",
24+
"ruff>=0.11.0",
2125
]
2226
classifiers = [
2327
"Development Status :: 3 - Alpha",
2428
"Programming Language :: Python :: 3.13",
2529
]
2630

27-
[project.optional-dependencies]
28-
dev = ["pytest>=7.4.0", "pytest-cov>=4.0.0", "ruff>=0.11.0", "bpy>=5.1.0"]
29-
3031
[project.scripts]
3132
gameassets = "gameassets.cli:main"
3233

GameDevLab/pyproject.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ dependencies = [
1717
"numpy>=1.24.0",
1818
"pyyaml>=6.0",
1919
"gamedev-shared @ file:../Shared",
20-
]
21-
22-
[project.optional-dependencies]
23-
bench = [
2420
"torch>=2.6.0",
2521
"diffusers>=0.30.0",
2622
"transformers>=4.46.0",
@@ -34,11 +30,11 @@ bench = [
3430
"easydict>=1.10",
3531
"scikit-image>=0.24.0",
3632
"addict>=2.4.0",
37-
# Otimizações VRAM adicionais
38-
"xformers>=0.0.28", # Memory efficient attention
39-
"accelerate>=0.34.0", # Otimizações de modelo
33+
"xformers>=0.0.28",
34+
"accelerate>=0.34.0",
35+
"pytest>=7.4.0",
36+
"ruff>=0.11.0",
4037
]
41-
dev = ["pytest>=7.4.0", "ruff>=0.11.0"]
4238

4339
[project.scripts]
4440
gamedev-lab = "gamedev_lab.cli:main"

Paint3D/pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,22 @@ dependencies = [
3636
"xformers>=0.0.28; sys_platform == 'linux'",
3737
"sdnq>=0.1.0", # Quantização moderna SDNQ
3838
"einops>=0.8.0", # Tensor rearrange (pipeline vendored)
39-
"bpy>=4.5.9",
39+
"bpy>=5.1.0",
4040
# Hunyuan3D-2.1: código vendored em paint3d/hy3dpaint/ (de Tencent-Hunyuan/Hunyuan3D-2.1)
4141
# Real-ESRGAN (RRDBNet + RealESRGANer): vendored — evita basicsr (pip falha no Python 3.13)
4242
# nvdiffrast: instalar separadamente com --no-build-isolation (requer PyTorch pré-instalado)
4343
# pip install git+https://github.com/NVlabs/nvdiffrast.git --no-build-isolation
44+
"spandrel>=0.4.0",
45+
"pytest>=7.4.0",
46+
"pytest-cov>=4.0.0",
47+
"ruff>=0.11.0",
4448
]
4549
classifiers = [
4650
"Development Status :: 3 - Alpha",
4751
"Topic :: Multimedia :: Graphics :: 3D Modeling",
4852
"Programming Language :: Python :: 3.13",
4953
]
5054

51-
[project.optional-dependencies]
52-
upscale = ["spandrel>=0.4.0"]
53-
dev = ["pytest>=7.4.0", "pytest-cov>=4.0.0", "ruff>=0.11.0"]
54-
5555
[project.scripts]
5656
paint3d = "paint3d.cli:main"
5757

Part3D/pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,17 @@ dependencies = [
4242
"scikit-learn",
4343
"onnxruntime>=1.16.0",
4444
"gamedev-shared @ file:../Shared",
45+
"bpy>=5.1.0",
46+
"pytest>=7.4.0",
47+
"pytest-cov>=4.0.0",
48+
"ruff>=0.11.0",
4549
]
4650
classifiers = [
4751
"Development Status :: 3 - Alpha",
4852
"Topic :: Multimedia :: Graphics :: 3D Modeling",
4953
"Programming Language :: Python :: 3.13",
5054
]
5155

52-
[project.optional-dependencies]
53-
dev = ["pytest>=7.4.0", "pytest-cov>=4.0.0", "ruff>=0.11.0", "bpy>=5.1.0"]
54-
5556
[project.scripts]
5657
part3d = "part3d.cli:main"
5758

Rigging3D/pyproject.toml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ dependencies = [
1717
"rich>=13.0.0",
1818
"rich-click>=1.8.0",
1919
"PyYAML>=6.0",
20-
]
21-
classifiers = [
22-
"Programming Language :: Python :: 3.13",
23-
]
24-
25-
[project.optional-dependencies]
26-
inference = [
2720
"torch>=2.6.0",
2821
"torchvision>=0.21.0",
2922
"numpy>=1.26.4,<3",
@@ -41,11 +34,13 @@ inference = [
4134
"pyrender",
4235
"huggingface_hub",
4336
"wandb",
44-
# Deps CUDA-specific (instaladas por setup.sh / installer.py --inference):
45-
# spconv-cu121, cumm-cu121, torch-scatter, torch-cluster
46-
# Atenção: PyTorch SDPA (nativo); não é necessário flash-attn.
37+
"pytest>=7.4.0",
38+
"pytest-cov>=4.0.0",
39+
"ruff>=0.11.0",
40+
]
41+
classifiers = [
42+
"Programming Language :: Python :: 3.13",
4743
]
48-
dev = ["pytest>=7.4.0", "pytest-cov>=4.0.0", "ruff>=0.11.0"]
4944

5045
[project.scripts]
5146
rigging3d = "rigging3d.cli:main"

0 commit comments

Comments
 (0)