Skip to content

Commit

Permalink
fix: make the model not rotate for perf
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Sep 1, 2019
1 parent 8c9b0ce commit 9b76154
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/renderer/skin/SkinView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export default {
const character = new Model();
character.root.translateY(-0.5);
this.$setSkin = (skin, slim) => {
console.log(`Set Skin ${skin}`);
character.updateSkin(skin, slim);
};
this.$setCape = (cape) => {
Expand All @@ -103,8 +104,8 @@ export default {
controls.maxDistance = this.maxDistance;
controls.minDistance = this.minDistance;
if (this.rotate) {
controls.autoRotate = true;
controls.autoRotateSpeed = 4;
// controls.autoRotate = true;
// controls.autoRotateSpeed = 4;
}
const self = this;
requestAnimationFrame(function animate(nowMsec) {
Expand Down

0 comments on commit 9b76154

Please sign in to comment.