Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit d03d77f8 authored by Frédéric Larue's avatar Frédéric Larue
Browse files

While creating Displayables, the initialize() function is now called before...

While creating Displayables, the initialize() function is now called before any other functions that may need information generated by it.
parent 61a4a645
......@@ -306,8 +306,7 @@ bool GLViewer::addDisplayable( GenericUIData *m )
std::list<DisplayableInfo*> &priorityList = m_DisplayablesByPriority[ factory->second->displayPriority() ];
dispInfo = &m_Displayables[ m ];
dispInfo->displayable = displayable;
dispInfo->selectionMgr = displayable->selectionManager();
dispInfo->displayable = displayable;
dispInfo->posInPriorityList = priorityList.insert( priorityList.end(), dispInfo );
dispInfo->packingXform.setToIdentity();
......@@ -341,6 +340,7 @@ bool GLViewer::addDisplayable( GenericUIData *m )
}
displayable->initialize( *m->GetDisplayOptions() );
dispInfo->selectionMgr = displayable->selectionManager();
if( !m->GetDisplayOptions()->empty() )
{
......
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