Skip to content
Snippets Groups Projects
Commit 47d9c195 authored by Robert Long's avatar Robert Long
Browse files

Update bone-visibility to use near zero scale.

parent fd8606f2
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,8 @@ AFRAME.registerComponent("bone-visibility", {
if (visible) {
this.el.object3D.scale.set(1, 1, 1);
} else {
this.el.object3D.scale.set(0, 0, 0);
// Three.js doesn't like updating matrices with 0 scale, so we set it to a near zero number.
this.el.object3D.scale.set(0.00000001, 0.00000001, 0.00000001);
}
this.lastVisible = visible;
......
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