Skip to content

Fix SemanticLevel.objects always empty for MP3D scenes - #2640

Open
Functionhx wants to merge 1 commit into
facebookresearch:mainfrom
Functionhx:fix/semantic-level-objects-empty
Open

Fix SemanticLevel.objects always empty for MP3D scenes#2640
Functionhx wants to merge 1 commit into
facebookresearch:mainfrom
Functionhx:fix/semantic-level-objects-empty

Conversation

@Functionhx

Copy link
Copy Markdown

Fixes #2597.

Objects were added to regions but never propagated to the parent level's
objects vector. This caused SemanticLevel.objects to always return an
empty list, even though objects were correctly accessible through
SemanticRegion.objects.

The fix adds 2 lines in Mp3dSemanticScene.cpp to also push each object
onto the parent level's objects vector when the object's region has a
parent level.

Objects were added to regions but never propagated to the parent level's
objects vector. This caused SemanticLevel.objects to always return an
empty list, even though objects were correctly accessible through
SemanticRegion.objects.

Test Plan:
- Load an MP3D house file and verify SemanticLevel.objects is non-empty
- Verify the fix works both via SemanticScene.load_mp3d_house() and
  through the Simulator

Fixes facebookresearch#2597
@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jul 9, 2026
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.

SemanticLevel.objects attribute is empty

1 participant