Editor: Do not reset landscape brush when switching tools

console-destruction
Sven Eberhardt 2016-08-27 19:43:34 -04:00
parent 6070bb4782
commit c98f99b427
1 changed files with 1 additions and 1 deletions

View File

@ -250,6 +250,7 @@ void C4ConsoleGUI::ToolsDlgInitMaterialCtrls(class C4ToolsDlg *dlg)
// All foreground materials
assert(Active);
if (!Active) return;
if (state->ui.foregroundMatTexComboBox->count()) return; // already initialized
state->ui.foregroundMatTexComboBox->clear();
state->ui.foregroundMatTexComboBox->addItem(QString(C4TLS_MatSky));
QStringList items;
@ -314,7 +315,6 @@ void C4ConsoleGUI::ToolsDlgInitMaterialCtrls(class C4ToolsDlg *dlg)
state->SetBackTexture(dlg->BackTexture);
state->UpdateMatTex();
state->UpdateBackMatTex();
}
void C4ConsoleGUI::ToolsDlgSelectTexture(C4ToolsDlg *dlg, const char *texture) { if (!Active) return; state->SetTexture(texture); }