Remove sceneExit handling in ViewportHost
This commit is contained in:
@@ -3967,15 +3967,6 @@ export class ViewportHost {
|
|||||||
selected,
|
selected,
|
||||||
entity.interactionEnabled
|
entity.interactionEnabled
|
||||||
);
|
);
|
||||||
case "sceneExit":
|
|
||||||
return this.createInteractableRenderObjects(
|
|
||||||
entity.id,
|
|
||||||
entity.position,
|
|
||||||
entity.radius,
|
|
||||||
selected,
|
|
||||||
entity.interactionEnabled,
|
|
||||||
selected ? SCENE_EXIT_SELECTED_COLOR : SCENE_EXIT_COLOR
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6290,7 +6281,6 @@ export class ViewportHost {
|
|||||||
case "soundEmitter":
|
case "soundEmitter":
|
||||||
case "teleportTarget":
|
case "teleportTarget":
|
||||||
case "interactable":
|
case "interactable":
|
||||||
case "sceneExit":
|
|
||||||
case "spotLight":
|
case "spotLight":
|
||||||
return this.getPlanarCreationAnchor(event);
|
return this.getPlanarCreationAnchor(event);
|
||||||
}
|
}
|
||||||
@@ -6547,16 +6537,6 @@ export class ViewportHost {
|
|||||||
BOX_CREATE_PREVIEW_FILL
|
BOX_CREATE_PREVIEW_FILL
|
||||||
).group;
|
).group;
|
||||||
break;
|
break;
|
||||||
case "sceneExit":
|
|
||||||
previewGroup = this.createInteractableRenderObjects(
|
|
||||||
"creation-preview",
|
|
||||||
previewPosition,
|
|
||||||
DEFAULT_SCENE_EXIT_RADIUS,
|
|
||||||
false,
|
|
||||||
true,
|
|
||||||
BOX_CREATE_PREVIEW_FILL
|
|
||||||
).group;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
if (this.displayMode === "wireframe") {
|
if (this.displayMode === "wireframe") {
|
||||||
this.applyWireframePresentation(previewGroup);
|
this.applyWireframePresentation(previewGroup);
|
||||||
|
|||||||
Reference in New Issue
Block a user