#7940 Python : Traverse inheritance stack to find correct script class name

This commit is contained in:
Magne Sjaastad committed 2021-09-02 08:55:35 +02:00
1 parent 16ec5f793a
commit b397c230ac
5 files changed
+43 -10

No files matched your search

@@ -2082,6 +2082,8 @@ std::vector<double> RimEclipseView::currentCellResultData() const
std::vector<double> resultData;
if ( currentGridCellResults() && cellResult() )
{
if ( !currentGridCellResults()->hasResultEntry( cellResult()->eclipseResultAddress() ) ) return {};
int timeStep = 0;
if ( cellResult()->hasDynamicResult() )
{
@@ -2097,7 +2099,7 @@ std::vector<double> RimEclipseView::currentCellResultData() const
//--------------------------------------------------------------------------------------------------
void RimEclipseView::setCurrentCellResultData( const std::vector<double>& values )
{
if ( currentGridCellResults() && cellResult() )
if ( !values.empty() && currentGridCellResults() && cellResult() )
{
int timeStep = 0;
if ( cellResult()->hasDynamicResult() )