mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use odb "Steps" as animation steps
Issue #293 This is only tested with one step yet.
This commit is contained in:
@@ -764,11 +764,10 @@ void RiuMainWindow::refreshAnimationActions()
|
||||
{
|
||||
if (activeGmv->isTimeStepDependentDataVisible())
|
||||
{
|
||||
RigFemResultAddress resAddr = activeGmv->cellResult()->resultAddress();
|
||||
size_t frameCount = activeGmv->geoMechCase()->geoMechData()->frameCount(0, resAddr);
|
||||
for (size_t i = 0; i < frameCount; i++)
|
||||
std::vector<std::string> stepNames = activeGmv->geoMechCase()->geoMechData()->stepNames();
|
||||
for (size_t i = 0; i < stepNames.size(); i++)
|
||||
{
|
||||
timeStepStrings += QString::number(i);
|
||||
timeStepStrings += QString::fromStdString(stepNames[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user