Revision: 2434 http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2434&view=rev Author: rorthomas Date: 2012-02-02 13:56:29 +0000 (Thu, 02 Feb 2012) Log Message: ----------- fixed texturetool under linux
Modified Paths: -------------- trunk/bin/resources/mygui.zip trunk/source/main/gui/TextureToolWindow.cpp Modified: trunk/bin/resources/mygui.zip =================================================================== (Binary files differ) Modified: trunk/source/main/gui/TextureToolWindow.cpp =================================================================== --- trunk/source/main/gui/TextureToolWindow.cpp 2012-02-02 13:39:12 UTC (rev 2433) +++ trunk/source/main/gui/TextureToolWindow.cpp 2012-02-02 13:56:29 UTC (rev 2434) @@ -117,10 +117,18 @@ { try { + bool exists = Ogre::TextureManager::getSingleton().resourceExists(texName); + if(!exists) + { + mTxt->setCaption(convertToMyGUIString("Texture not found:\n"+texName)); + mBtnSavePNG->setEnabled(false); + return; + } + TexturePtr tex = Ogre::TextureManager::getSingleton().getByName(texName); if(tex.isNull()) { - mTxt->setCaption(convertToMyGUIString("Texture not found:\n"+texName)); + mTxt->setCaption(convertToMyGUIString("Error loading texture:\n"+texName)); mBtnSavePNG->setEnabled(false); return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Rigsofrods-devel mailing list Rigsofrods-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel