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

RGBELoader: Make magic bytes regex less strict #20887

Merged
merged 2 commits into from Dec 14, 2020
Merged

Conversation

gkjohnson
Copy link
Collaborator

Fix #20839

Description

Change RGBELoader with the fix I suggested in #20839 (comment) so it does not require a newline for the magic bytes. Tested by @Usnul.

And here's an example file from this branch that uses RGBELoader to show it does not break:

https://raw.githack.com/gkjohnson/three.js/patch-4/examples/webgl_loader_gltf.html

@gkjohnson gkjohnson changed the title Patch 4 RGBELoader: Make magic bytes regex less strict Dec 14, 2020
@Mugen87 Mugen87 added this to the r124 milestone Dec 14, 2020
@mrdoob mrdoob merged commit 3086c78 into mrdoob:dev Dec 14, 2020
@mrdoob
Copy link
Owner

mrdoob commented Dec 14, 2020

Thanks!

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.

RGBELoader magic header check
4 participants