Skip to content

Commit f8693c1

Browse files
authored
removed bad example path (#2424)
1 parent d1d3e5f commit f8693c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/model-viewer/src/three-components/gltf-instance/ModelViewerGLTFInstance.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ export class ModelViewerGLTFInstance extends GLTFInstance {
187187

188188
// Clones the roughnessMap if it exists.
189189
let roughnessMap: Texture|null = null;
190-
if (material.roughnessMap) {
190+
if (material.roughnessMap != null) {
191191
roughnessMap = material.roughnessMap.clone();
192192
}
193193

194194
// Assigns the roughnessMap to the cloned material and generates mipmaps.
195-
if (roughnessMap) {
195+
if (roughnessMap != null) {
196196
roughnessMap.needsUpdate = true;
197197
clone.roughnessMap = roughnessMap;
198198

packages/modelviewer.dev/examples/augmentedreality/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ <h4></h4>
378378
</div>
379379
<example-snippet stamp-to="customButton" highlight-as="html">
380380
<template>
381-
<model-viewer ar camera-controls ios-src="assets/Astronaut.usdz" src="../../shared-assets/models/Astronaut.glb" alt="A 3D model of an astronaut">
381+
<model-viewer ar ar-modes="webxr scene-viewer quick-look" camera-controls src="../../shared-assets/models/Astronaut.glb" alt="A 3D model of an astronaut">
382382
<button slot="ar-button" style="background-color: white; border-radius: 4px; border: none; position: absolute; top: 16px; right: 16px; ">
383383
👋 Activate AR
384384
</button>

0 commit comments

Comments
 (0)