Skip to content

Commit e5db267

Browse files
authored
Fixed: The converter sometimes misidentified materials with older than Built-in UTS3 0.7.x as older materials in Unitychan Toon Shader Ver 2.0.7. (#245)
1 parent 49e56e0 commit e5db267

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

com.unity.toonshader/CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Changelog
2-
## [0.8.2-preview] - 2022-09-07
2+
## [0.8.2-preview] - 2022-09-08
33
### Updated:
44
* Updated some documents.
55

66
### Fixed:
7-
* Some warinings.
8-
* URP shader was not working for WebGL.
7+
* Deleted some warinings.
8+
* The converter sometimes misidentified materials older than 0.7.x in Built-in UTS3 as older materials in Unitychan Toon Shader Ver 2.0.7.
9+
* URP shader was not working for WebGL/GLES 3.0.
910

1011

1112
## [0.8.1-preview] - 2022-08-24

com.unity.toonshader/Editor/Converter/FromUTS2/BuiltInUTS2toIntegratedConverter.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,11 @@ public override int CountErrors(bool addToScrollView)
287287
{
288288
continue; // Not Unity-chan Toon Shader Ver 2.
289289
}
290-
290+
var targetLine1 = Array.Find<string>(lines, line => line.StartsWith(" - _isUnityToonshader"));
291+
if (targetLine1 != null)
292+
{
293+
continue; // Not Unity-chan Toon Shader Ver 2.
294+
}
291295
var targetLine2 = Array.Find<string>(lines, line => line.StartsWith(" - _utsVersion"));
292296
if (targetLine2 == null)
293297
{

0 commit comments

Comments
 (0)