mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 22:56:54 +02:00
remove Windows.prompt cause of crash
This commit is contained in:
parent
a1053ee5a0
commit
05d311cff3
1 changed files with 12 additions and 15 deletions
|
@ -81,18 +81,17 @@ function mousePressEvent(event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function masterReceivingMessage(channel, message, senderID) {
|
function masterReceivingMessage(channel, message, senderID) {
|
||||||
if (channel === CLIENTS_TO_MASTER_CHANNEL) {
|
if (channel === CLIENTS_TO_MASTER_CHANNEL) {
|
||||||
print("MASTER received message:" + message );
|
print("MASTER received message:" + message );
|
||||||
if (message === PARTICIPATING_MESSAGE) {
|
if (message === PARTICIPATING_MESSAGE) {
|
||||||
//increment the counter of all the participants
|
//increment the counter of all the participants
|
||||||
responsesExpected++;
|
responsesExpected++;
|
||||||
} else if (waitingForPerformanceFile) {
|
} else if (waitingForPerformanceFile) {
|
||||||
//I get an atp url from one participant
|
//I get an atp url from one participant
|
||||||
performanceJSON.avatarClips[performanceJSON.avatarClips.length] = message;
|
performanceJSON.avatarClips[performanceJSON.avatarClips.length] = message;
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function update(deltaTime) {
|
function update(deltaTime) {
|
||||||
if (waitingForPerformanceFile) {
|
if (waitingForPerformanceFile) {
|
||||||
|
@ -114,17 +113,15 @@ function update(deltaTime) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function uploadFinished(url){
|
function uploadFinished(url){
|
||||||
print("some info:");
|
//need to print somehow the url here this way the master can copy the url
|
||||||
print("performance file uploaded to: " + url);
|
print("PERFORMANCE FILE URL: " + url);
|
||||||
uploadedFile = url;
|
|
||||||
Assets.downloadData(url, function (data) {
|
Assets.downloadData(url, function (data) {
|
||||||
printPerformanceJSON(JSON.parse(data));
|
printPerformanceJSON(JSON.parse(data));
|
||||||
});
|
});
|
||||||
//need to print somehow the url here this way the master can copy the url
|
|
||||||
Window.prompt("Performance file url: ", url);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function printPerformanceJSON(obj) {
|
function printPerformanceJSON(obj) {
|
||||||
|
print("some info:");
|
||||||
print("downloaded performance file from asset and examinating its content...");
|
print("downloaded performance file from asset and examinating its content...");
|
||||||
var avatarClips = obj.avatarClips;
|
var avatarClips = obj.avatarClips;
|
||||||
avatarClips.forEach(function(param) {
|
avatarClips.forEach(function(param) {
|
||||||
|
|
Loading…
Reference in a new issue