From 756b9c389ad992df11e334d39d086f359d9c76c4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 27 Oct 2008 11:08:54 +0000 Subject: [PATCH] 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." --- src/osgPlugins/ac/ac3d.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/osgPlugins/ac/ac3d.cpp b/src/osgPlugins/ac/ac3d.cpp index d6ab539e0..28311f6d2 100644 --- a/src/osgPlugins/ac/ac3d.cpp +++ b/src/osgPlugins/ac/ac3d.cpp @@ -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];