Skip to content
This repository was archived by the owner on Dec 21, 2025. It is now read-only.

Commit 10f738e

Browse files
Update 3DM Viewer
1 parent e9b2e15 commit 10f738e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

viewers/templates/3DM Viewer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@
343343
<button title="URL of the remote 3DM model" id="btn_url" onclick="show_url();" style="background-color: transparent; min-width: 34px;">URL</button>
344344
<input type="file" title="Browse Local Files" id="file_input" onchange="init();" accept=".3dm, image/png, image/jpeg, image/bmp, image/gif, image/svg+xml, image/webp" multiple />
345345
<label for="file_image_input" title="Background Image" style="color: #553801;">BGND</label>
346-
<input type="file" title="Background Image" id="file_image_input" accept=".exr, .hdr, image/png, image/jpeg, image/bmp, image/gif, image/svg+xml, image/webp" onchange="set_scene_image()" disabled />
346+
<input type="file" title="Background Image" id="file_image_input" accept=".exr, .hdr, .ktx2, image/png, image/jpeg, image/bmp, image/gif, image/svg+xml, image/webp" onchange="set_scene_image()" disabled />
347347
<button title="Toggle Gradient Color Background" id="btn_bgnd_linear_gradient" onclick="set_bgnd_linear_gradient();" style="background-color: transparent; color: blue;" disabled>G</button>
348348
<button title="Model Opacity - double click to enable/disable" id="btn_dc_opacity" class="dropdown" style="text-align: center; border: 1px solid blue; -webkit-border-radius: 3px; border-radius: 3px;" ondblclick="set_opacity();" onclick="show_hide_dropdown_opacity();">O
349349
<div id="dc_opacity" class="dropdown-content" style="display: none;" onfocusout="if (enable_opacity === true) hide_dropdown_opacity();">
@@ -1793,7 +1793,7 @@
17931793

17941794
let fn_uc = fii.name.toUpperCase();
17951795

1796-
if (fii.type.startsWith('image/') && ! (fn_uc.endsWith('.SVG') || fn_uc.endsWith('.EXR') || fn_uc.endsWith('.HDR'))) {
1796+
if (fii.type.startsWith('image/') && ! (fn_uc.endsWith('.SVG') || fn_uc.endsWith('.KTX2') || fn_uc.endsWith('.EXR') || fn_uc.endsWith('.HDR'))) {
17971797
hdrJPGLoader.load( URL.createObjectURL( fii ) , async function( texture ) {
17981798
URL.revokeObjectURL( fii );
17991799

0 commit comments

Comments
 (0)