Skip to content

Commit e788e42

Browse files
committed
fix: wrap renderGLTFToPNGFromGLB result in Buffer.from to satisfy Buffer type
1 parent e4b1c10 commit e788e42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/shared/process-snapshot-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export const processSnapshotFile = async ({
148148
cameraOptions = applyCameraPreset(cameraPreset, cameraOptions)
149149
}
150150

151-
png3d = await renderGLTFToPNGFromGLB(glbBuffer, cameraOptions)
151+
png3d = Buffer.from(await renderGLTFToPNGFromGLB(glbBuffer, cameraOptions))
152152
} catch (error) {
153153
const errorMessage =
154154
error instanceof Error ? error.message : String(error)

0 commit comments

Comments
 (0)