fix(engine): layer.setText schema requires optional OpenType keys (#520)

- Mark OpenType? and ss01? as optional in params doc
- Fix clippy lint: use as_chunks instead of chunks_exact
This commit is contained in:
Mara Johnson
2026-10-09 20:57:21 -04:00
parent 30aaddf7c2
commit 6f0369b3a8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -372,7 +372,7 @@ pub fn parse_spimtx(text: &str) -> Option<FileXform> {
}
let mut m = [0.0; 16];
let mut offset = [0.0; 4];
for (r, row) in v.chunks_exact(4).enumerate() {
for (r, row) in v.as_chunks::<4>().0.iter().enumerate() {
m[r * 4..r * 4 + 3].copy_from_slice(&row[..3]);
offset[r] = row[3] / 65535.0;
}