Commit 19eb6562 authored by Alexander Wiebel's avatar Alexander Wiebel

[FIX #402] changing the dataset now always changes max and min of the slider

parent d69c6d4c
......@@ -135,11 +135,12 @@ void WMMarchingCubes::moduleMain()
// acquire data from the input connector
m_dataSet = m_input->getData();
if( m_isoValueProp->get() >= m_dataSet->getMax() || m_isoValueProp->get() <= m_dataSet->getMin() )
{
// set appropriate constraints for properties
m_isoValueProp->setMin( m_dataSet->getMin() );
m_isoValueProp->setMax( m_dataSet->getMax() );
if( m_isoValueProp->get() >= m_dataSet->getMax() || m_isoValueProp->get() <= m_dataSet->getMin() )
{
m_isoValueProp->set( 0.5 * ( m_dataSet->getMax() + m_dataSet->getMin() ), true );
}
}
......
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