Use odb "Steps" as animation steps

Issue #293
This is only tested with one step yet.
This commit is contained in:
Jacob Støren committed 2015-06-03 12:14:25 +02:00
1 parent ca6d9d364d
commit 96329793f3
10 files changed
+72 -92

No files matched your search

@@ -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]);
}
}
}