Commit 0b9bef8c authored by Robin Eschbach's avatar Robin Eschbach
Browse files

[FIX #141] point connector selector

parent 06d263de
......@@ -147,7 +147,7 @@ void WFiberHandler::addFiber( std::string name, bool silent, bool updateSelector
if( updateSelector )
{
selectorUpdate();
selectorUpdate( m_fibers->size() - 1);
}
if( !silent )
......@@ -156,9 +156,9 @@ void WFiberHandler::addFiber( std::string name, bool silent, bool updateSelector
}
}
void WFiberHandler::selectorUpdate()
void WFiberHandler::selectorUpdate( size_t idx )
{
m_fiberSelection->set( m_possibleFiberSelections->getSelectorLast() );
m_fiberSelection->set( m_possibleFiberSelections->getSelector( idx ) );
}
void WFiberHandler::addFiberAt( std::string name, size_t position, bool hidden, bool silent, PCFiber fiber )
......
......@@ -145,7 +145,7 @@ public:
/**
* Updates the UI selector.
*/
void selectorUpdate();
void selectorUpdate( size_t idx );
/**
* Clears the data in this handler.
......
......@@ -201,7 +201,7 @@ void WMPointConnector::handleInput()
}
m_fiberHandler->setFiberCount( fibers->size() );
m_fiberHandler->selectorUpdate();
m_fiberHandler->selectorUpdate( fibers->size() - 1 );
updatePoints();
updateOutput();
......@@ -272,7 +272,7 @@ void WMPointConnector::handleClick( osg::Vec3 cameraPosition, osg::Vec3 directio
return;
}
m_fiberHandler->selectFiber( fiberIdx );
m_fiberHandler->selectorUpdate();
m_fiberHandler->selectorUpdate( fiberIdx );
}
else
{
......
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