diff --git a/code/glTF/glTFAsset.inl b/code/glTF/glTFAsset.inl index 25cf1873c..500d49fcb 100644 --- a/code/glTF/glTFAsset.inl +++ b/code/glTF/glTFAsset.inl @@ -325,7 +325,7 @@ inline void Buffer::Read(Value& obj, Asset& r) } else { // Local file if (byteLength > 0) { - std::string dir = !r.mCurrentAssetDir.empty() ? (r.mCurrentAssetDir + "/") : ""; + std::string dir = !r.mCurrentAssetDir.empty() ? (r.mCurrentAssetDir) : ""; IOStream* file = r.OpenFile(dir + uri, "rb"); if (file) { diff --git a/code/glTF2/glTF2Asset.inl b/code/glTF2/glTF2Asset.inl index 55a3e5833..e55857be1 100644 --- a/code/glTF2/glTF2Asset.inl +++ b/code/glTF2/glTF2Asset.inl @@ -384,7 +384,7 @@ inline void Buffer::Read(Value& obj, Asset& r) } else { // Local file if (byteLength > 0) { - std::string dir = !r.mCurrentAssetDir.empty() ? (r.mCurrentAssetDir + "/") : ""; + std::string dir = !r.mCurrentAssetDir.empty() ? (r.mCurrentAssetDir) : ""; IOStream* file = r.OpenFile(dir + uri, "rb"); if (file) {