Commit 3fbe7eb5 authored by Ellen Dekkers's avatar Ellen Dekkers

Added Texture for reflection lines

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5990 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9a9bfc9a
......@@ -437,6 +437,12 @@ void TextureControlPlugin::slotTextureUpdated( QString _textureName , int _ident
switchDrawMode( texData->texture( _textureName ).type() );
}
void TextureControlPlugin::slotUpdateTexture( QString _textureName , int _identifier) {
if ( _textureName == "Reflection Lines" )
slotTextureUpdated( _textureName , _identifier );
}
template< typename MeshT >
void TextureControlPlugin::doUpdateTexture ( Texture& _texture, MeshT& _mesh )
{
......@@ -857,6 +863,8 @@ void TextureControlPlugin::pluginsInitialized() {
emit addContextMenuItem(contextMenu_->menuAction() ,DATA_TRIANGLE_MESH , CONTEXTOBJECTMENU );
emit addContextMenuItem(contextMenu_->menuAction() ,DATA_POLY_MESH , CONTEXTOBJECTMENU );
slotTextureAdded("Reflection Lines","reflection_map.png",2);
}
void TextureControlPlugin::slotSetTextureProperties() {
......
......@@ -101,6 +101,7 @@ class TextureControlPlugin : public QObject, BaseInterface, TextureInterface, Me
void slotSetTextureMode(QString _textureName ,QString _mode);
void slotSwitchTexture( QString _textureName, int _id );
void slotSwitchTexture( QString _textureName );
void slotUpdateTexture( QString _textureName , int _identifier);
// LoadSaveInterface
void fileOpened( int _id );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment