Fix drag-out losing audio and FX-container drops losing the capture; re-home ingest under shell/actions
This commit is contained in:
@@ -76,6 +76,17 @@ std::vector<std::uint8_t> buildInstrumentDropPreset(const std::string& sampleId)
|
||||
return buildVstPresetBytes(vstClassIdHex(), instrumentDropStateBytes(sampleId));
|
||||
}
|
||||
|
||||
DropOutcome decideDropOutcome(const DropAttempt& attempt) {
|
||||
DropOutcome out;
|
||||
if (attempt.addedFxIndex < 0) return out; // add failed — nothing exists to roll back
|
||||
if (!attempt.presetApplied) {
|
||||
out.rollbackFxIndex = attempt.addedFxIndex;
|
||||
return out;
|
||||
}
|
||||
out.loaded = true;
|
||||
return out;
|
||||
}
|
||||
|
||||
bool infoNamesFxHotspot(const std::string& info) {
|
||||
// See the header contract for the prefix rule and the embed-strip exclusion.
|
||||
auto startsWith = [&info](const char* p) { return info.rfind(p, 0) == 0; };
|
||||
|
||||
Reference in New Issue
Block a user