Ensure that we don't use the same typed array for both coords
and colors
in Mesh figures
(issue 6287)
This regressed in 1e8d70af98
.
This commit is contained in:
parent
e876dd8123
commit
7fe2442a18
@ -345,13 +345,10 @@ Shadings.Mesh = (function MeshClosure() {
|
||||
|
||||
reader.align();
|
||||
}
|
||||
|
||||
var psPacked = new Int32Array(ps);
|
||||
|
||||
mesh.figures.push({
|
||||
type: 'triangles',
|
||||
coords: psPacked,
|
||||
colors: psPacked
|
||||
coords: new Int32Array(ps),
|
||||
colors: new Int32Array(ps),
|
||||
});
|
||||
}
|
||||
|
||||
@ -366,13 +363,10 @@ Shadings.Mesh = (function MeshClosure() {
|
||||
coords.push(coord);
|
||||
colors.push(color);
|
||||
}
|
||||
|
||||
var psPacked = new Int32Array(ps);
|
||||
|
||||
mesh.figures.push({
|
||||
type: 'lattice',
|
||||
coords: psPacked,
|
||||
colors: psPacked,
|
||||
coords: new Int32Array(ps),
|
||||
colors: new Int32Array(ps),
|
||||
verticesPerRow: verticesPerRow
|
||||
});
|
||||
}
|
||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -22,6 +22,7 @@
|
||||
!simpletype3font.pdf
|
||||
!sizes.pdf
|
||||
!close-path-bug.pdf
|
||||
!issue2948.pdf
|
||||
!issue4630.pdf
|
||||
!issue4909.pdf
|
||||
!issue5202.pdf
|
||||
|
BIN
test/pdfs/issue2948.pdf
Normal file
BIN
test/pdfs/issue2948.pdf
Normal file
Binary file not shown.
@ -634,6 +634,13 @@
|
||||
"rounds": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue2948",
|
||||
"file": "pdfs/issue2948.pdf",
|
||||
"md5": "26210bed6a57d5466042aff22f0249f0",
|
||||
"link": false,
|
||||
"rounds": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "usmanm-bad-auto-fetch",
|
||||
"file": "pdfs/usmanm-bad.pdf",
|
||||
"md5": "38afb822433aaf07fc8f54807cd4f61a",
|
||||
|
Loading…
Reference in New Issue
Block a user