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

[bugfix] - Fix a bug with snap_down on articulated links #1982

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

aclegg3
Copy link
Contributor

@aclegg3 aclegg3 commented Jun 18, 2024

Motivation and Context

After #1946, snap_down on links (e.g. drawers) passed the link's object_id alone into support_object_ids. This caused a bug in snap_down because ContactPointData.object_id_a is always the parent object's id. This PR corrects the logic to first acquire the link's object id from ContactPointData.link_id_a before checking against the support_surface_id.

How Has This Been Tested

Locally with viewer app trial and error.

Types of changes

  • [Bug Fix] (non-breaking change which fixes an issue)

Checklist

  • My code follows the code style of this project.
  • I have updated the documentation if required.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes if required.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jun 18, 2024
Copy link
Contributor

@0mdc 0mdc left a comment

Choose a reason for hiding this comment

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

LGTM!

@aclegg3 aclegg3 merged commit 49ae519 into main Jun 21, 2024
4 checks passed
@aclegg3 aclegg3 deleted the alex-06_18-snap_down_link_fix branch June 21, 2024 19:59
dannymcy pushed a commit to dannymcy/habitat-lab that referenced this pull request Jun 26, 2024
dannymcy pushed a commit to dannymcy/habitat-lab that referenced this pull request Jul 8, 2024
dannymcy pushed a commit to dannymcy/habitat-lab that referenced this pull request Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants