Move some more scriptability to caf

This commit is contained in:
Gaute Lindkvist
2020-03-04 11:30:08 +01:00
parent 17ea69397a
commit 2424d79c5d
14 changed files with 279 additions and 53 deletions

View File

@@ -107,7 +107,7 @@ void RiaGrpcServiceInterface::copyPdmObjectFromCafToRips( const caf::PdmObjectHa
{
QString text;
QTextStream outStream( &text );
ricfHandle->writeFieldData( outStream, false );
ricfHandle->readFromField( outStream, false );
( *parametersMap )[ricfHandle->scriptFieldName().toStdString()] = text.toStdString();
}
}
@@ -176,7 +176,7 @@ bool RiaGrpcServiceInterface::assignFieldValue( const QString& stringValue,
QTextStream stream( stringValue.toLatin1() );
caf::PdmScriptIOMessages messages;
*oldValue = field->toQVariant();
ricfHandle->readFieldData( stream, nullptr, &messages, false );
ricfHandle->writeToField( stream, nullptr, &messages, false );
*newValue = field->toQVariant();
return true;
}