important fix, texture manager
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user