Skip to content

Commit b1e300e

Browse files
committed
LBK apply for wall lanes which belongs default soflan group only
1 parent a2d7d3e commit b1e300e

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

OngekiFumenEditor/Modules/FumenVisualEditor/Graphics/Drawing/TargetImpl/OngekiObjects/LaneBlockerDrawingTarget.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ void ProcessWallLane(LaneStartBase wallStartLane, TGrid minTGrid, TGrid maxTGrid
143143
var itor = lbk
144144
.GetAffactableWallLanes(fumen)
145145
.Where(x => target.CheckRangeVisible(x.MinTGrid, x.MaxTGrid))
146+
.Where(x =>
147+
{
148+
//Only apply for wall lanes which belongs default soflan group
149+
target.Editor._cacheSoflanGroupRecorder.GetCache(x, out var soflanGroup);
150+
return soflanGroup == 0;
151+
})
146152
.OrderBy(x => x.TGrid)
147153
.GetEnumerator();
148154

OngekiFumenEditor/Modules/PreviewSvgGenerator/Kernel/DefaultPreviewSvgGenerator.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,14 @@ void ProcessWallLane(LaneStartBase start, TGrid minTGrid, TGrid maxTGrid)
10021002

10031003
var itor = lbk
10041004
.GetAffactableWallLanes(fumen)
1005+
/*
1006+
.Where(x =>
1007+
{
1008+
//todo Only apply for wall lanes which belongs default soflan group
1009+
target.Editor._cacheSoflanGroupRecorder.GetCache(x, out var soflanGroup);
1010+
return soflanGroup == 0;
1011+
})
1012+
*/
10051013
.OrderBy(x => x.TGrid)
10061014
.GetEnumerator();
10071015

0 commit comments

Comments
 (0)