mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-26 08:50:32 +05:00
PAL5597
This commit is contained in:
parent
29b9e89cb6
commit
9959a9373f
@ -127,6 +127,7 @@
|
|||||||
#include <vtkRenderWindow.h>
|
#include <vtkRenderWindow.h>
|
||||||
#include <vtkActorCollection.h>
|
#include <vtkActorCollection.h>
|
||||||
#include <vtkScalarBarActor.h>
|
#include <vtkScalarBarActor.h>
|
||||||
|
#include <vtkUnstructuredGrid.h>
|
||||||
|
|
||||||
#include "utilities.h"
|
#include "utilities.h"
|
||||||
|
|
||||||
@ -2583,6 +2584,14 @@ bool SMESHGUI::CustomPopup(QAD_Desktop* parent, QPopupMenu* popup, const QString
|
|||||||
popup->removeItem( 1134 ); // Clipping
|
popup->removeItem( 1134 ); // Clipping
|
||||||
popup->removeItem( 2000 ); // Scalar Bar
|
popup->removeItem( 2000 ); // Scalar Bar
|
||||||
}
|
}
|
||||||
|
// VSR 03/02/05 - check if actor is empty ----- start -----
|
||||||
|
vtkUnstructuredGrid* vtkGrid = anActor->GetUnstructuredGrid();
|
||||||
|
if ( vtkGrid->GetNumberOfPoints() + vtkGrid->GetNumberOfCells() == 0 ) {
|
||||||
|
popup->removeItem( QAD_Display_Popup_ID );
|
||||||
|
popup->removeItem( QAD_DisplayOnly_Popup_ID );
|
||||||
|
popup->removeItem( QAD_Erase_Popup_ID );
|
||||||
|
}
|
||||||
|
// VSR 03/02/05 - check if actor is empty ----- finish -----
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// object doesn't have actor
|
// object doesn't have actor
|
||||||
|
Loading…
Reference in New Issue
Block a user