This commit is contained in:
Luis Fernando Molina committed 2020-10-25 11:38:15 +01:00
1 parent 404c3d9720
commit f6d096394a
2 files changed
+10 -1

No files matched your search

+8 -1
View File
@@ -158,7 +158,7 @@ function newCanvas() {
}
}
/* Space Animation */
/* Space Animation Physics */
for (let j = 0; j < projectDefinition.spaces.length; j++) {
let spaceInstance = spaceAnimationMap.get(j)
let spaceDefinition = spaceDefinitionMap.get(j)
@@ -166,6 +166,13 @@ function newCanvas() {
if (spaceInstance.physics !== undefined) {
thisObject.animation.addCallBackFunction(spaceDefinition.name + ' ' + 'Physics', spaceInstance.physics)
}
}
/* Space Animation Drawing*/
for (let j = 0; j < projectDefinition.spaces.length; j++) {
let spaceInstance = spaceAnimationMap.get(j)
let spaceDefinition = spaceDefinitionMap.get(j)
if (spaceInstance === undefined || spaceDefinition === undefined) { continue }
if (spaceInstance.draw !== undefined) {
thisObject.animation.addCallBackFunction(spaceDefinition.name + ' ' + 'Draw', spaceInstance.draw)
}
+2
View File
@@ -76,6 +76,8 @@ function newEventsServerClient(networkNode) {
}
function sendToWebSocketServer(command) {
if (commandsWaitingConfirmation === undefined) {return} // object already finalized
nonce++
let stringNonce = nonce.toString()
let timestamp = (new Date()).valueOf()