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

Update to use new SceneViewer events #88

Merged
merged 4 commits into from
Sep 20, 2022
Merged

Conversation

sheilaXu
Copy link
Collaborator

@sheilaXu sheilaXu commented Aug 9, 2022

No description provided.

@CLAassistant
Copy link

CLAassistant commented Aug 9, 2022

CLA assistant check
All committers have signed the CLA.

src/panels/scene-viewer/SceneViewer.tsx Outdated Show resolved Hide resolved
selectedEntityValue && selectedComponentValue
? {
[DataBindingLabelKeys.entityId]: selectedEntityValue,
[DataBindingLabelKeys.componentName]: selectedComponentValue,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why don't we set the selected propertyName?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we did not use it to match the data binding, so I just removed it

}
: undefined;

const selectedNode = getSceneNodeByRef(getSelectedSceneNodeRef() || '');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we always use nested function calls to get the selectedNode? What use case is there to use just one of these functions?
Seems like we don't need to return both from useSceneComposerApi

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

getSceneNodeByRef should be a useful function to be exposed on it's own, so I just make them separate ones

@sheilaXu sheilaXu marked this pull request as ready for review September 20, 2022 17:52
@sheilaXu
Copy link
Collaborator Author

Known bugs for camera position and video playback mode. to be fixed with next PR

@sheilaXu sheilaXu merged commit df7192f into main Sep 20, 2022
@mukeshsahay mukeshsahay deleted the new-scene-viewer-events branch January 24, 2023 06:26
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

4 participants