We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f846e7d + 2da1357 commit 9e7f022Copy full SHA for 9e7f022
anchors.html
@@ -252,12 +252,14 @@
252
});
253
254
tracked_anchors.forEach(anchor => {
255
- const anchorPose = frame.getPose(anchor.anchorSpace, xrRefSpace);
256
- if (anchorPose) {
257
- anchor.context.sceneObject.matrix = anchorPose.transform.matrix;
258
- anchor.context.sceneObject.visible = true;
259
- } else {
260
- anchor.context.sceneObject.visible = false;
+ if (anchor.context) {
+ const anchorPose = frame.getPose(anchor.anchorSpace, xrRefSpace);
+ if (anchorPose) {
+ anchor.context.sceneObject.matrix = anchorPose.transform.matrix;
+ anchor.context.sceneObject.visible = true;
+ } else {
261
+ anchor.context.sceneObject.visible = false;
262
+ }
263
}
264
265
0 commit comments