Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove from collision cache #711

Merged
merged 2 commits into from
Sep 29, 2015
Merged

Remove from collision cache #711

merged 2 commits into from
Sep 29, 2015

Conversation

RaananW
Copy link
Member

@RaananW RaananW commented Sep 29, 2015

The remove function was missing, meshes and geometries would not have
been removed from the collision cache of the worker.

The remove function was missing, meshes and geometries would not have
been removed from the collision cache of the worker.
@RaananW RaananW closed this Sep 29, 2015
@RaananW RaananW reopened this Sep 29, 2015
RaananW added a commit that referenced this pull request Sep 29, 2015
@RaananW RaananW merged commit 6a48c36 into BabylonJS:master Sep 29, 2015
@RaananW RaananW deleted the remove-mesh-in-worker branch September 29, 2015 14:38
}
}
payload.removedGeometries.forEach(function (id) {
this._collisionCache.removeGeometry(id);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this "this" looks suspicious to me

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah!... Yes, it is ☺. Tested with a for loop and changed to forEach.
Fixed soon.

@RaananW RaananW mentioned this pull request Sep 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants