#8180 Python : Make orientation scriptable

This commit is contained in:
Magne Sjaastad
2021-10-25 11:40:30 +02:00
parent fbc8300210
commit e4d84675c5
3 changed files with 27 additions and 27 deletions

View File

@@ -109,7 +109,7 @@ QList<caf::PdmOptionItemInfo>
{
QList<caf::PdmOptionItemInfo> options;
if ( fieldNeedingOptions == &m_stimPlanModel )
if ( fieldNeedingOptions == &m_stimPlanModel && m_stimPlanModel )
{
// The user is not allowed to change this field, but option box looks good
options.push_back( caf::PdmOptionItemInfo( m_stimPlanModel->name(), m_stimPlanModel ) );