Mesh_3_demo:

+ Simplify again file existence check in CMakeLists.txt
  + Change pop-up window type if error is more informational than critical
This commit is contained in:
Stéphane Tayeb 2010-06-22 14:51:20 +00:00
parent 7b5d7c4907
commit b858ad7664
3 changed files with 3 additions and 4 deletions

View File

@ -215,8 +215,7 @@ if(CGAL_Qt4_FOUND AND QT4_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND)
polyhedron_demo_plugin(io_c3t3_plugin Io_c3t3_plugin)
target_link_libraries(io_c3t3_plugin scene_c3t3_item)
file ( GLOB RIBPLUGIN_EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/c3t3_rib_exporter_plugin.cpp" )
if ( RIBPLUGIN_EXISTS )
if ( EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/c3t3_rib_exporter_plugin.cpp" )
polyhedron_demo_plugin(c3t3_rib_exporter_plugin C3t3_rib_exporter_plugin ${ribUI_FILES})
target_link_libraries(c3t3_rib_exporter_plugin scene_c3t3_item viewer)
endif()

View File

@ -421,7 +421,7 @@ get_c3t3_item() const
if ( NULL == item )
{
QMessageBox::critical(mw,tr(""),
QMessageBox::warning(mw,tr(""),
tr("Selected object is not a mesh... optimization can't be performed"));
return NULL;
}

View File

@ -136,7 +136,7 @@ void Mesh_3_plugin::mesh_3()
if ( NULL == item )
{
QMessageBox::critical(mw,tr(""),
QMessageBox::warning(mw,tr(""),
tr("Selected object can't be meshed"));
return;
}