Skip to content

Commit 473467a

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 c0e5e7d commit 473467a

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
@@ -43,6 +43,7 @@ The version number for this package has increased due to a version update of a r
4343
- Allow world position usage in shaderGraph plugged into an alpha/opacity output [Case 1259511](https://issuetracker.unity3d.com/product/unity/issues/guid/1259511/)
4444
- GPU Evaluation of Construct Matrix
4545
- Random Per-Component on Set Attribute in Spawn Context [Case 1279294](https://issuetracker.unity3d.com/product/unity/issues/guid/1279294/)
46+
- Fix corrupted UI in nodes due to corrupted point cache files [Case 1232867](https://fogbugz.unity3d.com/f/cases/1232867/)
4647

4748
## [7.4.1] - 2020-06-03
4849

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)