version 1.2.1
spot light without shadows and with texture fix mesh information points width and points-only meshes support
This commit is contained in:
@@ -118,6 +118,7 @@ void MaterialsEditor::materialsChanged() {
|
||||
return;
|
||||
}
|
||||
Material * cm = currentMaterial();
|
||||
ui->comboMaterial->blockSignals(true);
|
||||
ui->comboMaterial->clear();
|
||||
if (!view) return;
|
||||
QVector<Material *> mats = view->scene()->getMaterials();
|
||||
@@ -128,6 +129,8 @@ void MaterialsEditor::materialsChanged() {
|
||||
ui->comboMaterial->setItemIcon(i, QIcon(QPixmap::fromImage(view->materialThumbnail(m))));
|
||||
if (cm == m) ui->comboMaterial->setCurrentIndex(i);
|
||||
}
|
||||
ui->comboMaterial->blockSignals(false);
|
||||
if (currentMaterial() != cm) on_comboMaterial_currentIndexChanged(ui->comboMaterial->currentIndex());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user