Commit ed4d3902 authored by schurade's avatar schurade

[CHANGE] deactivating the module will also hide the manipulators

parent f5f7a234
......@@ -122,6 +122,7 @@ void WMArbitraryPlane::moduleMain()
m_moduleState.setResetable( true, true );
m_moduleState.add( m_propCondition );
m_moduleState.add( m_active->getUpdateCondition() );
while ( !m_shutdownFlag() )
{
......@@ -132,9 +133,9 @@ void WMArbitraryPlane::moduleMain()
m_dirty = true;
}
if ( m_showManipulators->changed() )
if ( m_active->changed() )
{
if ( m_showManipulators->get( true ) )
if ( m_active->get() && m_showManipulators->get() )
{
m_s0->unhide();
m_s1->unhide();
......@@ -148,6 +149,25 @@ void WMArbitraryPlane::moduleMain()
}
}
if ( m_showManipulators->changed() )
{
if ( m_showManipulators->get( true ) )
{
if ( m_active->get() )
{
m_s0->unhide();
m_s1->unhide();
m_s2->unhide();
}
}
else
{
m_s0->hide();
m_s1->hide();
m_s2->hide();
}
}
if ( m_shutdownFlag() )
{
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment