Skip to content

Commit e575215

Browse files
committed
忽略使用了 rpe 特有的 attachUI 特性
1 parent 7848756 commit e575215

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/chart/convert/rephiedit.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ export default function RePhiEditChartConverter(_chart)
113113
isCover : _judgeline.isCover == 1
114114
});
115115

116+
if (_judgeline.attachUI && _judgeline.attachUI != '')
117+
{
118+
console.warn('Line ' + judgelineIndex + ' is using \'attachUI\' feature, ignored this line.\nPlease note that all notes on this line will also be ignored.');
119+
return;
120+
}
121+
116122
// 处理 EventLayer
117123
_judgeline.eventLayers.forEach((_eventLayer) =>
118124
{
@@ -361,7 +367,7 @@ export default function RePhiEditChartConverter(_chart)
361367

362368
chart.judgelines.forEach((judgeline) =>
363369
{
364-
if (judgeline.parentLine && judgeline.parentLine > 0) judgeline.parentLine = chart.judgelines[judgeline.parentLine - 1];
370+
if (judgeline.parentLine && judgeline.parentLine > 0 && chart.judgelines[judgeline.parentLine - 1]) judgeline.parentLine = chart.judgelines[judgeline.parentLine - 1];
365371
else judgeline.parentLine = null;
366372
});
367373

0 commit comments

Comments
 (0)