Skip to content

Commit

Permalink
call helper.update() only if the helper has an update method
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed Oct 4, 2022
1 parent edc1b99 commit e5d2eaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ Inspector.prototype = {
helper.visible = false;
this.sceneHelpers.add(helper);
this.helpers[object.uuid] = helper;
helper.update();
// SkeletonHelper doesn't have an update method
if (helper.update) helper.update();
};
})(),

Expand Down

0 comments on commit e5d2eaa

Please sign in to comment.