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

Fix canPin predicate #6169

Merged
merged 3 commits into from
Jul 18, 2023
Merged

Fix canPin predicate #6169

merged 3 commits into from
Jul 18, 2023

Conversation

johnshaughnessy
Copy link
Contributor

The canPin predicate assumes initialData exists for a given createMessageData. It needs to first check whether the entity is a media, since media are the only things that are pinnable.

Two unrelated changes:

  • Catch an issue in mixerAnimatableSystem that can cause the app the become unresponsive.
  • Add createNetworkedMedia helper function so that initialData is type checked for media.

@johnshaughnessy johnshaughnessy changed the title Fix canPin check Fix canPin predicate Jul 18, 2023
@johnshaughnessy johnshaughnessy merged commit f099ec6 into master Jul 18, 2023
2 checks passed
@johnshaughnessy johnshaughnessy deleted the bug/media-file-id branch July 18, 2023 19:13
@@ -10,6 +10,10 @@ const mixerExitQuery = exitQuery(mixerQuery);

export function mixerAnimatableSystem(world: HubsWorld): void {
initializeEnterQuery(world).forEach(eid => {
if (entityExists(world, eid)) {
Copy link
Contributor

@takahirox takahirox Jul 22, 2023

Choose a reason for hiding this comment

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

This line breaks mixer animation. I think here should be !entityExists(world, eid).

Made a PR for the fix #6180

@takahirox takahirox mentioned this pull request Jul 22, 2023
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.

2 participants