mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
Removed some debug + fixed some checks
This commit is contained in:
parent
a6bf9d7b90
commit
1a131b0e29
1 changed files with 4 additions and 5 deletions
|
@ -139,8 +139,6 @@ function moveUI() {
|
|||
function mousePressEvent(event) {
|
||||
clickedOverlay = Overlays.getOverlayAtPoint({ x: event.x, y: event.y });
|
||||
|
||||
print("Status: isPlaying=" + MyAvatar.isPlaying() + ", isRecording=" + MyAvatar.isRecording());
|
||||
|
||||
if (recordIcon === toolBar.clicked(clickedOverlay) && !MyAvatar.isPlaying()) {
|
||||
if (!MyAvatar.isRecording()) {
|
||||
MyAvatar.startRecording();
|
||||
|
@ -161,15 +159,16 @@ function mousePressEvent(event) {
|
|||
} else if (saveIcon === toolBar.clicked(clickedOverlay)) {
|
||||
if (!MyAvatar.isRecording()) {
|
||||
recordingFile = Window.save("Save recording to file", ".", "*.rec");
|
||||
if (recordingFile != "") {
|
||||
if (recordingFile != null) {
|
||||
MyAvatar.saveRecording(recordingFile);
|
||||
}
|
||||
}
|
||||
} else if (loadIcon === toolBar.clicked(clickedOverlay)) {
|
||||
if (!MyAvatar.isRecording()) {
|
||||
recordingFile = Window.browse("Load recorcding from file", ".", "*.rec");
|
||||
if (recordingFile != "") {
|
||||
MyAvatar.loadRecording("https://s3-us-west-1.amazonaws.com/highfidelity-public/ozan/bartender.rec");
|
||||
if (recordingFile != "null") {
|
||||
} else {
|
||||
MyAvatar.loadRecording(recordingFile);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue