Merge remote branch 'origin/releases/2.2.0' into next
This commit is contained in:
@@ -132,8 +132,8 @@ void TextureUnitBuilder::buildAttribute(Effect* effect, Pass* pass,
|
|||||||
texture = TextureBuilder::buildFromType(effect, type, prop,
|
texture = TextureBuilder::buildFromType(effect, type, prop,
|
||||||
options);
|
options);
|
||||||
}
|
}
|
||||||
catch (BuilderException& ) {
|
catch (BuilderException& e) {
|
||||||
SG_LOG(SG_INPUT, SG_ALERT, "No image file, "
|
SG_LOG(SG_INPUT, SG_ALERT, e.getFormattedMessage() << ", "
|
||||||
<< "maybe the reader did not set the filename attribute, "
|
<< "maybe the reader did not set the filename attribute, "
|
||||||
<< "using white for type '" << type << "' on '" << pass->getName() << "', in " << prop->getPath() );
|
<< "using white for type '" << type << "' on '" << pass->getName() << "', in " << prop->getPath() );
|
||||||
texture = StateAttributeFactory::instance()->getWhiteTexture();
|
texture = StateAttributeFactory::instance()->getWhiteTexture();
|
||||||
@@ -213,7 +213,7 @@ TexTuple makeTexTuple(Effect* effect, const SGPropertyNode* props,
|
|||||||
string imageName;
|
string imageName;
|
||||||
if (pImage)
|
if (pImage)
|
||||||
imageName = pImage->getStringValue();
|
imageName = pImage->getStringValue();
|
||||||
string absFileName = osgDB::findDataFile(imageName, options);
|
string absFileName = SGModelLib::findDataFile(imageName, options);
|
||||||
|
|
||||||
const SGPropertyNode* pMipmapControl
|
const SGPropertyNode* pMipmapControl
|
||||||
= getEffectPropertyChild(effect, props, "mipmap-control");
|
= getEffectPropertyChild(effect, props, "mipmap-control");
|
||||||
|
|||||||
Reference in New Issue
Block a user