Use odb "Steps" as animation steps

Issue #293
This is only tested with one step yet.
This commit is contained in:
Jacob Støren
2015-06-01 07:51:11 +02:00
parent ca6d9d364d
commit 96329793f3
10 changed files with 72 additions and 92 deletions

View File

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