Skip to content

Commit

Permalink
fix: Escaped, relative buffer/texture URIs now work on local file sys…
Browse files Browse the repository at this point in the history
…tem consistently
  • Loading branch information
atteneder committed Feb 5, 2021
1 parent 91ffe90 commit cc3c7a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Had to bring back `GltfAsset.isDone` for render tests
### Fixed
- Rendertests work again
- Escaped, relative buffer/texture URIs now work on local file system consistently
- Rendertests work again

## [3.0.1] - 2020-02-04
### Added
Expand Down
1 change: 1 addition & 0 deletions Runtime/Scripts/UriHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static Uri GetBaseUri( Uri uri ) {
/// <param name="baseUri">Base URI</param>
/// <returns>Absolute URI that is potentially relative to baseUri</returns>
public static Uri GetUriString( string uri, Uri baseUri ) {
uri = Uri.UnescapeDataString(uri);
if(Uri.TryCreate(uri, UriKind.Absolute, out var result)){
return result;
}
Expand Down

0 comments on commit cc3c7a3

Please sign in to comment.