fixes
This commit is contained in:
1 parent
404c3d9720
commit
f6d096394a
2 files changed
+10
-1
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user