shx-3d-render

main
Jan Umbach 2024-06-22 13:56:59 +02:00
parent ce6ef5baa2
commit b26242677d
1 changed files with 4 additions and 4 deletions

View File

@ -289,15 +289,15 @@
console.log(color);
html += `
<input type="radio" id="${inputID}-${color}" form="product-form-${section_id}" name="properties[${inputName}]" value="${options[color].name} #${color}" ${inputVal === color ? 'checked' : ''}>
<label for="${inputID}-${color}" style="background-color: ${options[color].hex};">
<input type="radio" id="${inputID}-${color}" form="product-form-${section_id}" name="properties[${inputName}]" value="${FilamentList[color].name} #${color}" ${inputVal === color ? 'checked' : ''}>
<label for="${inputID}-${color}" style="background-color: ${FilamentList[color].hex};">
`;
if(options[color].matte) {
if(FilamentList[color].matte) {
html += `<span class="shx-mat-matte"></span>`;
}
if(options[color].silk) {
if(FilamentList[color].silk) {
html += `<span class="shx-mat-silk"></span>`;
}