diff options
author | Santo Cariotti <santo@dcariotti.me> | 2022-09-24 15:46:46 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2022-09-24 15:46:46 +0200 |
commit | b2f16fcbd5b199847e00faeba743cd52a10f4ca1 (patch) | |
tree | bc4910706b3c5ab1e429caa54f5f863ff8d012d0 /pages | |
parent | 5112a36a7e490186e6ba07b3e9ec5a362cef1f0e (diff) |
Fix mini preview for obj and stl
Diffstat (limited to 'pages')
-rw-r--r-- | pages/models/_id/index.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/models/_id/index.vue b/pages/models/_id/index.vue index e293584..6c5bbd4 100644 --- a/pages/models/_id/index.vue +++ b/pages/models/_id/index.vue @@ -98,14 +98,14 @@ :src="baseAPI + '' + upload.filepath" ) model-stl( - v-else-if="isStl(model.uploads[selectedUpload].filepath)" + v-else-if="isStl(upload.filepath)" :rotate="rotate" :src="baseAPI + '' + upload.filepath" :backgroundColor="'#D1D5DB'" :controlsOptions="{'enablePan': false, 'enableZoom': false, 'enableRotate': false}" ) model-obj( - v-else-if="isObj(model.uploads[selectedUpload].filepath)" + v-else-if="isObj(upload.filepath)" :src="baseAPI + '' + upload.filepath" :backgroundColor="'#D1D5DB'" ) |