Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BVH loader loadAsserContainerAsync support #16565

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

Merged
merged 2 commits into from
May 5, 2025

Conversation

noname0310
Copy link
Contributor

from #16540

In the current BVH loader, the skeleton will be added to the scene twice when load with loadAssetContainerAsync.

To solve this, I applied the same approach as the gltf loader's Skeleton creation method.
https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/loaders/src/glTF/2.0/glTFLoader.ts#L1378-L1381

@bjsplat
Copy link
Collaborator

bjsplat commented May 4, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented May 4, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented May 4, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented May 4, 2025

Copy link
Member

@RaananW RaananW left a comment

Choose a reason for hiding this comment

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

Just a formatting issue

@RaananW
Copy link
Member

RaananW commented May 5, 2025

cc @yuripourre

@yuripourre
Copy link
Contributor

Nice!

@bjsplat
Copy link
Collaborator

bjsplat commented May 5, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented May 5, 2025

@deltakosh deltakosh merged commit 8d54280 into BabylonJS:master May 5, 2025
17 checks passed
@@ -82,7 +82,7 @@ export class BVHFileLoader implements ISceneLoaderPluginAsync, ISceneLoaderPlugi
geometries: [],
lights: [],
spriteManagers: [],
});
} as ISceneLoaderAsyncResult);
Copy link
Member

Choose a reason for hiding this comment

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

Why the as? Is it just for intellisense? If so it seems like satisfies would make more sense here since the intent is not to cast.

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.

6 participants