Skip to content
Snippets Groups Projects
Commit 6cc844e5 authored by netpro2k's avatar netpro2k
Browse files

Fix sticky-object not auto-locking if body is already loaded

parent 589a909a
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,9 @@ AFRAME.registerComponent("sticky-object", {
this._onGrab = this._onGrab.bind(this);
this._onRelease = this._onRelease.bind(this);
this._onBodyLoaded = this._onBodyLoaded.bind(this);
if (this.el.body) {
this._onBodyLoaded();
}
},
play() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment