Fixed Crash when selecting SE witout any component.

This commit is contained in:
Jacob Støren 2015-09-26 10:08:58 +02:00
parent cd13fc5aee
commit 43dd883f63

View File

@ -302,7 +302,7 @@ RigFemScalarResultFrames* RigFemPartResultsCollection::calculateDerivedResult(in
}
if ((resVarAddr.fieldName == "SE")
&& !(resVarAddr.componentName == "S1" || resVarAddr.componentName == "S2" || resVarAddr.componentName == "S3" ))
&& !(resVarAddr.componentName == "S1" || resVarAddr.componentName == "S2" || resVarAddr.componentName == "S3" || resVarAddr.componentName == ""))
{
RigFemScalarResultFrames * srcDataFrames = this->findOrLoadScalarResult(partIndex, RigFemResultAddress(resVarAddr.resultPosType, "S-Bar", resVarAddr.componentName));
RigFemScalarResultFrames * srcPORDataFrames = this->findOrLoadScalarResult(partIndex, RigFemResultAddress(RIG_NODAL, "POR-Bar", ""));