Commit 39589b86 authored by Jan Möbius's avatar Jan Möbius
Browse files

Clear texture context menu if not available

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6315 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 223414af
...@@ -1362,8 +1362,10 @@ void TextureControlPlugin::slotUpdateContextMenu( int _objectId ) { ...@@ -1362,8 +1362,10 @@ void TextureControlPlugin::slotUpdateContextMenu( int _objectId ) {
} }
//skip object if its not a mesh //skip object if its not a mesh
if( !obj->dataType( DATA_TRIANGLE_MESH ) && !obj->dataType( DATA_POLY_MESH ) ) if( !obj->dataType( DATA_TRIANGLE_MESH ) && !obj->dataType( DATA_POLY_MESH ) ) {
contextMenu_->clear();
return; return;
}
// ================================================================================ // ================================================================================
// Get objects texture data and verify that texture exists // Get objects texture data and verify that texture exists
......
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