Skip to content

Commit

Permalink
Call hideCollider on the correct component object (fix #5385)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcos committed Nov 16, 2023
1 parent c9b51a2 commit 957237d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/obb-collider.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ registerSystem('obb-collider', {
removeCollider: function (colliderEl) {
var colliderEls = this.colliderEls;
var elIndex = colliderEls.indexOf(colliderEl);
colliderEl.hideCollider();
colliderEl.components['obb-collider'].hideCollider();
if (elIndex > -1) { colliderEls.splice(elIndex, 1); }
if (colliderEls.length === 0) { this.tick = undefined; }
},
Expand Down

0 comments on commit 957237d

Please sign in to comment.