Skip to content

Commit 5d1a4d2

Browse files
gabrieldelacruzjulienf-unity
authored andcommitted
Point cache: Binary format corrupted due to an extra byte offset (#108)
* Point cache header, wait for new line character only (/n) and skip carriage return(/r) An extra trailing new line character was causing an invalid offset in binary point cache files. * Update Changelog * Remove unnecessary files
1 parent ffd1156 commit 5d1a4d2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

com.unity.visualeffectgraph/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2424
- fix issue with multiselection and objectfields [Case 1250378](https://issuetracker.unity3d.com/issues/vfx-removing-texture-asset-while-multiediting-working-incorrectly)
2525
- GPU Evaluation of Construct Matrix
2626
- Random Per-Component on Set Attribute in Spawn Context [Case 1279294](https://issuetracker.unity3d.com/product/unity/issues/guid/1279294/)
27+
- Fix corrupted UI in nodes due to corrupted point cache files [Case 1232867](https://fogbugz.unity3d.com/f/cases/1232867/)
2728

2829
## [8.2.0] - 2020-07-08
2930

com.unity.visualeffectgraph/Editor/Utilities/pCache/PCache.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,11 @@ private static void GetHeader(Stream s, out long byteLength, out List<string> li
514514
char c = sr.ReadChar();
515515
byteLength++;
516516

517-
if (c == '\n' || c == '\r')
517+
if (c == '\r')
518+
{
519+
// skip
520+
}
521+
else if (c == '\n')
518522
{
519523
if (sb.Length > 0)
520524
newline = true;

0 commit comments

Comments
 (0)