mirror of
https://github.com/OpenMW/openmw.git
synced 2025-07-01 16:41:34 +00:00
Merge pull request #2911 from unelsson/fixdaematerialseq
Use sequenced texture units with .dae/collada
This commit is contained in:
commit
b5a2e809cd
1 changed files with 1 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue