Skip to content

Commit

Permalink
fix issue cocos#4942 (cocos#4949)
Browse files Browse the repository at this point in the history
  • Loading branch information
Heng authored and 2youyou2 committed Jul 31, 2019
1 parent e227699 commit 2eed9e2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cocos2d/core/collider/CCCollisionManager.js
Expand Up @@ -393,8 +393,12 @@ let CollisionManager = cc.Class({
let colliders = node.getComponents(cc.Collider);

for (let i = 0, l = colliders.length; i < l; i++) {
this.removeCollider(colliders[i]);
this.addCollider(colliders[i]);
let collider = colliders[i];
if(collider instanceof cc.PhysicsCollider) {
continue;
}
this.removeCollider(collider);
this.addCollider(collider);
}
},

Expand Down

0 comments on commit 2eed9e2

Please sign in to comment.