mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06: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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -46,6 +46,8 @@ public:
|
||||
void removeFracture( RimWellPathFracture* fracture );
|
||||
void deleteFractures();
|
||||
|
||||
static void updateAfterFractureIsAdded();
|
||||
|
||||
std::vector<RimWellPathFracture*> allFractures() const;
|
||||
std::vector<RimWellPathFracture*> activeFractures() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user