From 6030865fc217cf4cc56686506f7e00037954372b Mon Sep 17 00:00:00 2001 From: y-71 <37041878+y-71@users.noreply.github.com> Date: Fri, 3 Mar 2023 19:18:48 +0100 Subject: [PATCH] fix annotations example bug (#4151) --- packages/modelviewer.dev/examples/annotations/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/modelviewer.dev/examples/annotations/index.html b/packages/modelviewer.dev/examples/annotations/index.html index c01d428f9c..d35ff9ab02 100644 --- a/packages/modelviewer.dev/examples/annotations/index.html +++ b/packages/modelviewer.dev/examples/annotations/index.html @@ -346,7 +346,7 @@

Show Dimensions.

// update svg function drawLine(svgLine, dotHotspot1, dotHotspot2, dimensionHotspot) { - if (dotHotspot1 && dotHotspot1) { + if (dotHotspot1 && dotHotspot2) { svgLine.setAttribute('x1', dotHotspot1.canvasPosition.x); svgLine.setAttribute('y1', dotHotspot1.canvasPosition.y); svgLine.setAttribute('x2', dotHotspot2.canvasPosition.x);