mirror of
https://github.com/overte-org/overte.git
synced 2025-04-05 23:32:58 +02:00
migrate script-archive examples .extraInfo -> .extraInfo.subMeshName + ''
This commit is contained in:
parent
4021455058
commit
990f1db831
2 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue