summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-24 15:46:46 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-09-24 15:46:46 +0200
commitb2f16fcbd5b199847e00faeba743cd52a10f4ca1 (patch)
treebc4910706b3c5ab1e429caa54f5f863ff8d012d0
parent5112a36a7e490186e6ba07b3e9ec5a362cef1f0e (diff)
Fix mini preview for obj and stl
-rw-r--r--pages/models/_id/index.vue4
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'"
)