Commit 8b495663 authored by Jan Möbius's avatar Jan Möbius

Per object texture selection enabled

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5648 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8ac892e8
......@@ -1026,25 +1026,15 @@ void TextureControlPlugin::slotUpdateContextMenu( int _objectId ) {
void TextureControlPlugin::slotTextureContextMenu( QAction * _action ) {
// id of object for which the context menu is created, is stored in the action
QVariant idVariant = _action->data( );
int id = idVariant.toInt();
// ================================================================================
// Get picking object object
// ================================================================================
if ( id == -1 )
return;
BaseObjectData* obj;
if (! PluginFunctions::getObject( id , obj ) ) {
emit log(LOGERR,"slotUpdateContextMenu: Unable to get Object for id " + QString::number(id) );
return;
}
std::cerr << "TextureControlPlugin::slotTextureContextMenu : " << id << std::endl;
slotSwitchTexture( _action->text() , id );
std::cerr << "TextureControlPlugin::slotTextureContextMenu : " << id << std::endl;
// TODO: Switch texture for the given object.
}
Q_EXPORT_PLUGIN2( texturecontrolplugin , TextureControlPlugin );
......
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