From Mathias Froehlich, "This change is a result of a recent thread on osg-users.

The semantic change that went into the ac loader with the past patch was
incorrect wrt the document describing the behaviour of ac files and
inconsistent with what ac3d itself displays for that files.
This attached change reverts the behaviour to the original one. The
infrastructure to change this is left in place.
The change is based on rev 9045."
This commit is contained in:
Robert Osfield 2008-10-27 11:08:54 +00:00
parent d703c58936
commit 756b9c389a

View File

@ -327,7 +327,7 @@ class TextureData
public:
TextureData() :
mTranslucent(false),
mRepeat(false)
mRepeat(true)
{
}
@ -1177,11 +1177,13 @@ readObject(std::istream& stream, FileData& fileData, const osg::Matrix& parentTr
}
textureData = fileData.toTextureData(texname);
textureData.setRepeat(false);
}
else if (token == "texrep") {
stream >> textureRepeat[0] >> textureRepeat[1];
textureData.setRepeat(true);
// if (textureRepeat[0] == 0.0f && textureRepeat[1] == 0.0f)
// textureData.setRepeat(false);
// else
// textureData.setRepeat(true);
}
else if (token == "texoff") {
stream >> textureOffset[0] >> textureOffset[1];