GUI: improve sample type conversion

This commit is contained in:
tildearrow 2023-05-24 02:54:36 -05:00
parent 0fd5483b59
commit c7b24f706f
3 changed files with 42 additions and 2 deletions

View file

@ -257,8 +257,7 @@ void FurnaceGUI::drawSampleEdit() {
if (ImGui::Selectable(sampleDepths[i])) {
sample->prepareUndo(true);
e->lockEngine([this,sample,i]() {
sample->render();
sample->depth=(DivSampleDepth)i;
sample->convert((DivSampleDepth)i);
e->renderSamples();
});
updateSampleTex=true;