GUI: improve sample type conversion
This commit is contained in:
parent
0fd5483b59
commit
c7b24f706f
3 changed files with 42 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue