Support delete of multiple sub plots in one operation

This commit is contained in:
Magne Sjaastad
2022-05-06 12:38:38 +02:00
parent 85cd07c373
commit df1bb06f09
2 changed files with 3 additions and 0 deletions

View File

@@ -48,6 +48,8 @@ bool RicDeleteSubPlotFeature::isCommandEnabled()
if ( selection.size() > 0 )
{
if ( dynamic_cast<RimMultiPlot*>( selection.front() ) ) return false;
size_t plotsSelected = 0;
for ( caf::PdmObject* object : selection )
{