mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 00:50:15 -05:00
#11896 Make sure the Fractures folder in view is visible when required
The Fractures folder in a 3D view becomes visible when the first fracture is added. Make sure that the Project Tree is recreated correctly.
This commit is contained in:
1 parent
3cc2958384
commit
db20065e1e
4 files changed
+19
No files matched your search
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "RimWellPathFractureCollection.h"
|
||||
|
||||
#include "Rim3dView.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimWellPathFracture.h"
|
||||
|
||||
@@ -79,6 +80,18 @@ void RimWellPathFractureCollection::deleteFractures()
|
||||
m_fractures.deleteChildren();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellPathFractureCollection::updateAfterFractureIsAdded()
|
||||
{
|
||||
// When a fracture is created, update Project Tree for a view to make sure the Fractures object becomes visible
|
||||
for ( auto view : RimProject::current()->allViews() )
|
||||
{
|
||||
view->updateAllRequiredEditors();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user