Skip to content

Commit

Permalink
Use viewpoint name param in JS_WAYPOINT_UPDATE
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Feb 13, 2024
1 parent ff0d921 commit efbe8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/io_hubs_addon/hubs_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
try {
setTimeout(() => {
window.location = `${window.location.href}#${arguments[0]}`;
const mat = APP.world.scene.getObjectByName("__scene_debugger_viewpoint").matrixWorld;
const mat = APP.world.scene.getObjectByName(`${arguments[0]}`).matrixWorld;
APP.scene.systems["hubs-systems"].characterController.travelByWaypoint(mat, false, false);
}, 0);
} catch(e) {
Expand Down

0 comments on commit efbe8fd

Please sign in to comment.