mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 04:36:44 +00:00
Use sequenced texture units with .dae/collada
This commit is contained in:
parent
9067894335
commit
5bc44cf2ee
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.
|
// 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.
|
// but findFileCallback does not support virtual files, so we can't implement it.
|
||||||
options->setReadFileCallback(new ImageReadCallback(imageManager));
|
options->setReadFileCallback(new ImageReadCallback(imageManager));
|
||||||
|
if (ext == "dae") options->setOptionString("daeUseSequencedTextureUnits");
|
||||||
|
|
||||||
osgDB::ReaderWriter::ReadResult result = reader->readNode(*file, options);
|
osgDB::ReaderWriter::ReadResult result = reader->readNode(*file, options);
|
||||||
if (!result.success())
|
if (!result.success())
|
||||||
|
|
Loading…
Reference in a new issue