Fixed an issue in preview-service which was making it fail
This commit is contained in:
@@ -33,7 +33,7 @@ async function pageFunction(objectUrl) {
|
||||
for (let i = 0; i < 24; i++) {
|
||||
v.setView({ azimuth: Math.PI / 12, polar: 0 }, false)
|
||||
await waitForAnimation()
|
||||
ret.scr[i + ''] = v.screenshot()
|
||||
ret.scr[i + ''] = await v.screenshot()
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -115,9 +115,6 @@ export type PolarView = {
|
||||
origin?: Vector3
|
||||
}
|
||||
|
||||
/**
|
||||
* Carried over from the old Viewer. To be extended/changed
|
||||
*/
|
||||
export interface IViewer {
|
||||
init(): Promise<void>
|
||||
resize(): void
|
||||
|
||||
Reference in New Issue
Block a user