Skip to content

Commit

Permalink
Fix render of 0 time length arc+0.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
yojohanshinwataikei committed Apr 6, 2021
1 parent cfbc701 commit d067898
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Assets/Misc/BuildTimestamp.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
637532964558036267
637533026303858904
6 changes: 6 additions & 0 deletions Assets/Misc/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.3.9

- 修复时间长度为 0 的 Arc 不显示的问题

---

0.3.8

- 修复长度为 0 的 Arc 渲染时报错导致无法添加 Arc 的问题
Expand Down
4 changes: 4 additions & 0 deletions Assets/Scripts/Gameplay/Components/ArcArcRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@ public void BuildSegments()
{
segmentCount = duration / segSize + (duration % segSize == 0 ? 0 : 1);
}
if (segmentCount == 0 && arc.XStart != arc.XEnd && arc.YStart != arc.YEnd)
{
segmentCount = 1;
}
InstantiateSegment(segmentCount);

float startHeight = 0;
Expand Down
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ PlayerSettings:
16:10: 0
16:9: 1
Others: 0
bundleVersion: 0.3.8
bundleVersion: 0.3.9
preloadedAssets:
- {fileID: 4800000, guid: bb26ede1beb997943a7d6295fbf075d4, type: 3}
- {fileID: 4800000, guid: 1e340182228616b4ca7dad1e80f4d319, type: 3}
Expand Down

0 comments on commit d067898

Please sign in to comment.