misc...
* fix: deselecting particular primitives, invert selection work for expanded group entity selection (these are deselecting parent node)
* do not render entities selection in components mode; fixes 'invisible components for expanded group entity selection'
}
return m_parentSelected;
}
+Instance* parent() const
+{
+ return m_parent;
+}
};
}
}
void setSelected( bool select ){
m_selectable.setSelected( select );
+ if ( !select && parent() ){
+ Selectable* sel_parent = Instance_getSelectable( *parent() );
+ if ( sel_parent && sel_parent->isSelected() )
+ sel_parent->setSelected( false );
+ }
}
void update_selected() const {
void setSelected( bool select ){
m_selectable.setSelected( select );
+ if ( !select && parent() ){
+ Selectable* sel_parent = Instance_getSelectable( *parent() );
+ if ( sel_parent && sel_parent->isSelected() )
+ sel_parent->setSelected( false );
+ }
}
bool isSelected() const {
return m_selectable.isSelected();
else if ( renderable ) {
renderable->renderComponents( m_renderer, m_volume );
}
- m_renderer.Highlight( Renderer::ePrimitive );
+ //if( !(GlobalSelectionSystem().Mode() == SelectionSystem::eComponent && path.size() == 2) )
+ //if( !( GlobalSelectionSystem().Mode() == SelectionSystem::eComponent && node_is_group( path.top() ) ) )
+ if( !( GlobalSelectionSystem().Mode() == SelectionSystem::eComponent && Node_isEntity( path.top() ) ) )
+ m_renderer.Highlight( Renderer::ePrimitive );
}
if ( renderable ) {