Skip to content

Commit

Permalink
Update scene_manager.rst (#196)
Browse files Browse the repository at this point in the history
Assumes the intended / preferred logic of the scene scan example snippet - post capture - to be deletion of any existing scene_anchors and creation of new anchors in any case.

This way the anchors populate without user having to restart the app. (Tested good on Q2 v67 and Q3 v68)
  • Loading branch information
The-Cyber-Captain authored Aug 12, 2024
1 parent 112b8a2 commit aa8792d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/manual/meta/scene_manager.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ The complete code for requesting a scene capture could look like this:
if success == false:
return
# Recreate scene anchors since the user may have changed them.
# Delete any existing anchors, since the user may have changed them.
if scene_manager.are_scene_anchors_created():
scene_manager.remove_scene_anchors()
scene_manager.create_scene_anchors()
# Create scene_anchors for the freshly captured scene
scene_manager.create_scene_anchors()

0 comments on commit aa8792d

Please sign in to comment.