repo: janusweb action: commit revision: path_from: revision_from: 8c27ab74c82c9d910c89a047b8519767f5e48e7a: path_to: revision_to:
commit 8c27ab74c82c9d910c89a047b8519767f5e48e7a Author: spyduckDate: 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
--- 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-----