1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-30 16:20:21 +00:00

Use sequenced texture units with .dae/collada

This commit is contained in:
Nelsson Huotari 2020-06-16 14:37:06 +03:00
parent 9067894335
commit 5bc44cf2ee

View File

@ -360,6 +360,7 @@ namespace Resource
// Note, for some formats (.obj/.mtl) that reference other (non-image) files a findFileCallback would be necessary.
// but findFileCallback does not support virtual files, so we can't implement it.
options->setReadFileCallback(new ImageReadCallback(imageManager));
if (ext == "dae") options->setOptionString("daeUseSequencedTextureUnits");
osgDB::ReaderWriter::ReadResult result = reader->readNode(*file, options);
if (!result.success())