repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 8c27ab74c82c9d910c89a047b8519767f5e48e7a:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 8c27ab74c82c9d910c89a047b8519767f5e48e7a
Author: spyduck 
Date:   Wed Apr 11 09:26:28 2018 -0400

    reset object sync property after each frame

diff --git a/scripts/room.js b/scripts/room.js
index ed8fddfbbcfa9b652019c522a8ecb280505afbf7..
index ..19ff3584720a4ee2f8e038f84802db5941be5a12 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -1295,6 +1295,7 @@ elation.require([
           if (!this.appliedchanges[thing.js_id]) {
             this.changes[thing.js_id] = proxy;
           }
+          proxy.sync = false;
         }
       }
     }
@@ -1898,6 +1899,7 @@ elation.require([
         if (destroy) {
           this.roomedit.object.die();
         } else {
+          this.roomedit.object.sync = true;
           this.roomedit.object.collision_id = this.roomedit.object.id;
         }
       }
@@ -1923,6 +1925,7 @@ elation.require([
       if (this.roomedit.object) {
         if (this.roomedit.moving && ev.element.getProxyObject() !== this.roomedit.object) {
           this.roomedit.object.pos = this.editObjectSnapVector(this.roomedit.object.parent.worldToLocal(ev.data.point, true), this.roomedit.snap);
+          this.roomedit.object.sync = true;
         }
       }
     }

-----END OF PAGE-----