Add custom shader handling to texture viewer

This commit is contained in:
baldurk
2017-02-14 14:12:41 +00:00
parent bc2ef77405
commit fbae19f622
6 changed files with 366 additions and 15 deletions
+1 -1
View File
@@ -989,7 +989,7 @@ void ShaderViewer::on_save_clicked()
for(ScintillaEdit *s : m_Scintillas)
{
QWidget *w = (QWidget *)s;
files[w->property("filename").toString()] = QString::fromUtf8(s->getText(s->textLength()));
files[w->property("filename").toString()] = QString::fromUtf8(s->getText(s->textLength() + 1));
}
m_SaveCallback(&m_Ctx, this, files);
}