Skip to content

Commit ce4d1a0

Browse files
committed
V-Slice should have needsVoices false if no voices
1 parent 2eac58a commit ce4d1a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/funkin/editors/charter/SongCreationScreen.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ class SongCreationScreen extends UISubstateWindow {
296296

297297
if (curPage == 1) {
298298
importInstExplorer.selectable = importVoicesExplorer.selectable = !project;
299-
saveButton.selectable = project ? true : (importInstExplorer.file != null);
299+
saveButton.selectable = #if TEST_BUILD true #else project ? true : (importInstExplorer.file != null) #end;
300300
} else if (curPage == 2) {
301301
importIdTextBox.selectable = !project;
302302
importChartFile.fileType = project ? "fnfc" : "json";
@@ -450,7 +450,7 @@ class SongCreationScreen extends UISubstateWindow {
450450
var vslicechart:NewSwagSong = Json.parse(files.get('${songId}-chart.json'));
451451
var playData = vslicemeta.playData;
452452

453-
var meta:ChartMetaData = formatMeta({name: songId});
453+
var meta:ChartMetaData = formatMeta({name: songId, needsVoices: files.exists('Voices.${Flags.SOUND_EXT}')});
454454
var diffCharts:Array<ChartDataWithInfo> = [], events:Array<ChartEvent> = null;
455455
VSliceParser.parse(vslicemeta, vslicechart, meta, diffCharts, songId);
456456

0 commit comments

Comments
 (0)