#2360 Elm Props: read metadata on project load

This commit is contained in:
Rebecca Cox
2018-01-10 12:55:36 +01:00
parent 2cd006882f
commit 118980d568
2 changed files with 30 additions and 10 deletions

View File

@@ -179,7 +179,15 @@ RigFemScalarResultFrames* RigFemPartResultsCollection::findOrLoadScalarResult(in
currentFrames->frameData(0).swap(elem.second);
}
return m_femPartResults[partIndex]->findScalarResult(resVarAddr);
frames = m_femPartResults[partIndex]->findScalarResult(resVarAddr);
if (frames)
{
return frames;
}
else
{
return m_femPartResults[partIndex]->createScalarResult(resVarAddr);
}
}
// We need to read the data as bulk fields, and populate the correct scalar caches