important fix, texture manager

This commit is contained in:
2023-02-07 18:11:06 +03:00
parent 9cc870c996
commit 4e62165c80
15 changed files with 401 additions and 20 deletions

View File

@@ -147,8 +147,7 @@ void RendererBase::fillSelectionsBuffer(QVector<uchar> & buffer, bool yes, int s
void RendererBase::reloadMaterials(Scene & scene) {
// qDebug() << "reloadMaterias";
QList<Map *> maps;
QMap<QString, int> tex_layers[2];
textures_manager->clearMissed();
for (Material * m: scene.materials) {
m->load(textures_manager);
}
@@ -163,6 +162,7 @@ void RendererBase::reloadMaterials(Scene & scene) {
for (Material * m: scene.materials) {
m->setMapsLayers(textures_manager);
}
textures_manager->loadingDone();
QGLMaterial glm;
cur_materials_.clear();