blender/tests/files/alembic/point-radius-scope.blend
Kévin Dietrich c6447e69c6 Alembic: use proper scopes for reading and writing radii
Curves and points radii were read and written assuming they are always
defined on the vertex scope. This is a bit mistaken as those are
GeomParams in Alembic, which means that they could be defined on any
scope.

For export, we now write them on the Constant scope if the radius
attribute is a single value. Otherwise, we keep exporting on the vertex
scope.

For import, we read radii values properly according to the Alembic
scope. For Constant scope, we simply create a single value array.

This also adds some `get_sane_range` function to sanitize the range
used when iterating over Alembic data when reading curves widths.
This mirrors what is currently done for reading points widths.

Pull Request: https://projects.blender.org/blender/blender/pulls/164077
2026-09-21 21:04:38 +02:00

3 lines
131 B
Text

version https://git-lfs.github.com/spec/v1
oid sha256:2e34c410f24b35dc90cc73b147352af8e871df999596e1d9045fd4ba473ea9e5
size 107586