repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 6a974f9505600b9fedc779326788fbde5cee81ad:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 6a974f9505600b9fedc779326788fbde5cee81ad
Author: James Baicoianu 
Date:   Thu Jul 30 16:26:34 2020 -0700

    Added hasChangedPosition()

diff --git a/scripts/janusbase.js b/scripts/janusbase.js
index f19fd1c87dc618a62d28c202a13ea478a9e88720..
index ..570518a08f7674d02f761c93899e935394a528ac 100644
--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -687,6 +687,10 @@ elation.require(['engine.things.generic', 'utils.template', 'janusweb.parts'], f
         return !euler.equals(this.properties.rotation);
       }
     })();
+    this.hasChangedPosition = function() {
+      var changes = this.frameupdates;
+      return (changes['position'] || !this.lastframevalues.position.equals(this.properties.position));
+    }
     this.resetFrameUpdates = function() {
       this.frameupdates['position'] = false;
       this.frameupdates['scale'] = false;

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