migrate script-archive examples .extraInfo -> .extraInfo.subMeshName + ''

This commit is contained in:
humbletim 2018-01-08 11:50:46 -05:00
parent 4021455058
commit 990f1db831
2 changed files with 4 additions and 4 deletions

View file

@ -274,7 +274,7 @@ function actionStartEvent(event) {
var result = Overlays.findRayIntersection(event.actionRay);
if (result.intersects && result.overlayID == panelWall) {
var panelName = result.extraInfo;
var panelName = result.extraInfo.subMeshName + '';
var panelStringIndex = panelName.indexOf("Panel");
if (panelStringIndex != -1) {
@ -338,7 +338,7 @@ function handleLookAt(pickRay) {
// check if we hit a panel and if we should jump there
var result = Overlays.findRayIntersection(pickRay);
if (result.intersects && result.overlayID == panelWall) {
var panelName = result.extraInfo;
var panelName = result.extraInfo.subMeshName + '';
var panelStringIndex = panelName.indexOf("Panel");
if (panelStringIndex != -1) {
var panelIndex = parseInt(panelName.slice(5));

View file

@ -272,7 +272,7 @@ function actionStartEvent(event) {
var result = Overlays.findRayIntersection(event.actionRay);
if (result.intersects && result.overlayID == panelWall) {
var panelName = result.extraInfo;
var panelName = result.extraInfo.subMeshName + '';
var panelStringIndex = panelName.indexOf("Panel");
if (panelStringIndex != -1) {
@ -321,7 +321,7 @@ function handleLookAt(pickRay) {
// check if we hit a panel and if we should jump there
var result = Overlays.findRayIntersection(pickRay);
if (result.intersects && result.overlayID == panelWall) {
var panelName = result.extraInfo;
var panelName = result.extraInfo.subMeshName + '';
var panelStringIndex = panelName.indexOf("Panel");
if (panelStringIndex != -1) {
var panelIndex = parseInt(panelName.slice(5));