Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Merge pull request #23 from AltspaceVR/bug/update-behaviors-timing
Browse files Browse the repository at this point in the history
Update timing for updateAllBehaviors call
  • Loading branch information
Steven Vergenz authored Dec 21, 2016
2 parents c6ba9a9 + 7e6f122 commit 4b67a7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions dist/aframe-altspace-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,9 @@
},

/*
* Called when component is attached and when component data changes.
* Generally modifies the entity based on the data.
* Called on every single tick or render loop of the scene.
*/
update: function (oldData) {
tick: function (t, dt) {
if(this.el.object3D.updateAllBehaviors)
this.el.object3D.updateAllBehaviors();
},
Expand Down
Loading

0 comments on commit 4b67a7b

Please sign in to comment.