#7953 StimPlan Model: always recompute anchor position and thickness direction. (#8004)

This is to support manually changing the MD directly in the project file.

Fixes #7953.
This commit is contained in:
Kristian Bendiksen
2021-09-14 10:46:12 +02:00
committed by GitHub
parent 1df25ed71c
commit cd91a96871
3 changed files with 20 additions and 0 deletions

View File

@@ -665,6 +665,12 @@ bool RiaApplication::loadProject( const QString& projectFileName,
}
oilField->annotationCollection()->loadDataAndUpdate();
for ( auto well : oilField->wellPathCollection()->allWellPaths() )
{
for ( auto stimPlan : well->stimPlanModelCollection()->allStimPlanModels() )
stimPlan->resetAnchorPositionAndThicknessDirection();
}
}
// Some procedures in onProjectOpened() may rely on the display model having been created