-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add support for XR_META_spatial_entity_mesh to get global scene mesh #122
Conversation
2796620
to
863216b
Compare
12adf7b
to
3e9e485
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@@ -98,7 +98,7 @@ void OpenXRFbSceneExtensionWrapper::_on_instance_destroyed() { | |||
} | |||
|
|||
const PackedStringArray &OpenXRFbSceneExtensionWrapper::get_supported_semantic_labels() { | |||
static PackedStringArray semantic_labels = String(SUPPORTED_SEMANTIC_LABELS).split(","); | |||
static PackedStringArray semantic_labels = String(SUPPORTED_SEMANTIC_LABELS).to_lower().split(","); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment describing why we're converting to lower case (e.g: to match Godot's automatically converting them to lower-case when saving properties).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I added a comment at both the places where we convert the semantic labels to lower-case
3e9e485
to
91ed23f
Compare
@dsnopek Can you rebase the PR? |
91ed23f
to
a882cb0
Compare
@m4gr3d Rebased! |
Here's a screen shot showing a wire frame (the light white lines) of the global scene mesh, which is what's added to the demo:
This PR also fixes a bug that I noticed in
OpenXRFbSceneManager
, with storing the scenes based on semantic label (it was inconsistently converting upper to lower case, causing the properties to not really get set).