feat: per-position camera settings, material alias dialog, product delete, media browser links
- Per-render-position focal_length_mm/sensor_width_mm (DB → pipeline → Blender)
- FOV-based camera distance with min clamp fix for wide-angle lenses
- Unmapped materials blocking dialog on "Dispatch Renders" with batch alias creation
- Material check endpoint (GET /orders/{id}/check-materials)
- Batch alias endpoint (POST /materials/batch-aliases)
- Quick-map "No alias" badges on Materials page
- Full product hard-delete with storage cleanup (MinIO + disk files + orphaned CadFile)
- Delete button on ProductDetail page with confirmation
- Clickable product names in Media Browser (links to product page)
- Single-line render dispatch/retry (POST /orders/{id}/lines/{id}/dispatch-render)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -111,7 +111,9 @@ def _setup_mode_b(args, lap_fn: Callable[[str], None]) -> None:
|
||||
print(f"[blender_render] template mode: {len(parts)} parts imported into collection '{args.target_collection}'")
|
||||
|
||||
if needs_auto_camera:
|
||||
setup_auto_camera(parts, args.width, args.height)
|
||||
setup_auto_camera(parts, args.width, args.height,
|
||||
lens_mm=args.focal_length_mm,
|
||||
sensor_width_mm=args.sensor_width_mm)
|
||||
|
||||
|
||||
def _setup_mode_a(args) -> None:
|
||||
@@ -156,7 +158,9 @@ def _setup_mode_a(args) -> None:
|
||||
build_mat_map_lower(args.material_map), args.part_names_ordered,
|
||||
)
|
||||
|
||||
bbox_center, bsphere_radius = setup_auto_camera(parts, args.width, args.height)
|
||||
bbox_center, bsphere_radius = setup_auto_camera(parts, args.width, args.height,
|
||||
lens_mm=args.focal_length_mm,
|
||||
sensor_width_mm=args.sensor_width_mm)
|
||||
setup_auto_lights(bbox_center, bsphere_radius)
|
||||
world = bpy.data.worlds.new("World")
|
||||
bpy.context.scene.world = world
|
||||
|
||||
Reference in New Issue
Block a user