Skip to content

Commit c867b0e

Browse files
committed
texture menus
1 parent 493b322 commit c867b0e

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

app/components/FileUploader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ watch(
129129
/>
130130
<DragAndDrop
131131
ref="dragAndDropRef"
132-
class="d-none"
133132
:multiple
134133
:accept
134+
:inline="false"
135135
@files-selected="processSelectedFiles"
136136
/>
137137
</template>

app/components/Viewer/Options/TexturesSelector.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const { id } = defineProps({
1010
const internal_textures = ref([]);
1111
1212
onMounted(() => {
13-
if (textures.value === null) {
13+
if (textures.value === null || textures.value === undefined || textures.value.length === 0) {
1414
internal_textures.value = [{ id: "", texture_name: "" }];
1515
} else {
1616
internal_textures.value = textures.value;
@@ -29,8 +29,7 @@ function update_value_event($event, index) {
2929
</script>
3030

3131
<template>
32-
<v-row v-for="(texture, index) in internal_textures" :key="texture" align="center">
33-
<br />
32+
<v-row v-for="(texture, index) in internal_textures" :key="index" align="center" class="mt-2">
3433
<v-col cols="1" class="pa-0">
3534
<v-icon
3635
v-if="internal_textures.length > 1"

0 commit comments

Comments
 (0)