mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 16:14:35 +02:00
Merge pull request #15447 from SamGondelman/materialData
Case 22329: Don't try to bake materialURL if it points to materialData
This commit is contained in:
commit
4148ebfd18
1 changed files with 4 additions and 1 deletions
|
@ -409,7 +409,10 @@ void DomainBaker::enumerateEntities() {
|
||||||
|
|
||||||
// Materials
|
// Materials
|
||||||
if (entity.contains(MATERIAL_URL_KEY)) {
|
if (entity.contains(MATERIAL_URL_KEY)) {
|
||||||
addMaterialBaker(MATERIAL_URL_KEY, entity[MATERIAL_URL_KEY].toString(), true, *it);
|
QString materialURL = entity[MATERIAL_URL_KEY].toString();
|
||||||
|
if (!materialURL.startsWith("materialData")) {
|
||||||
|
addMaterialBaker(MATERIAL_URL_KEY, materialURL, true, *it);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (entity.contains(MATERIAL_DATA_KEY)) {
|
if (entity.contains(MATERIAL_DATA_KEY)) {
|
||||||
addMaterialBaker(MATERIAL_DATA_KEY, entity[MATERIAL_DATA_KEY].toString(), false, *it, _destinationPath);
|
addMaterialBaker(MATERIAL_DATA_KEY, entity[MATERIAL_DATA_KEY].toString(), false, *it, _destinationPath);
|
||||||
|
|
Loading…
Reference in a new issue