Skip to content

[GLTF-Import] Files get ignored, when File ending is not lower case#7141

Merged
keveleigh merged 2 commits intomicrosoft:mrtk_developmentfrom
cefoot:v2.2.0_GltfUtility
Jan 24, 2020
Merged

[GLTF-Import] Files get ignored, when File ending is not lower case#7141
keveleigh merged 2 commits intomicrosoft:mrtk_developmentfrom
cefoot:v2.2.0_GltfUtility

Conversation

@cefoot
Copy link
Contributor

@cefoot cefoot commented Jan 24, 2020

Overview

When trying to import GLTF or GLB files with upper case File ending f.e. "Video camera.GLB" the GlbAssetImporter Script get's triggerd but inside GltfEditorImporter.OnImportGltfAsset the file get's ignored because the file ending is not lower case.

Copy link
Contributor

@Troy-Ferrell Troy-Ferrell left a comment

Choose a reason for hiding this comment

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

Switch to using the StringComparison enum. This way we aren't duplicating memory to create the lower case version
Otherwise good find!

@keveleigh keveleigh added the GLTF Issues associated with the new GLTF open standard for exporting and importing 3D scenes and models label Jan 24, 2020
@keveleigh keveleigh added this to the MRTK 2.4.0 milestone Jan 24, 2020
@cefoot
Copy link
Contributor Author

cefoot commented Jan 24, 2020

Now using StringComparison enum instead of ToLower().

@keveleigh
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@keveleigh keveleigh merged commit 954bfb4 into microsoft:mrtk_development Jan 24, 2020
@keveleigh
Copy link
Contributor

Thanks for the contribution!

@cefoot cefoot deleted the v2.2.0_GltfUtility branch January 24, 2020 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GLTF Issues associated with the new GLTF open standard for exporting and importing 3D scenes and models

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants