Radiant:
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'
This commit is contained in:
parent
a62c7302d3
commit
3ec33465b1
|
|
@ -739,6 +739,10 @@ bool parentSelected() const {
|
|||
}
|
||||
return m_parentSelected;
|
||||
}
|
||||
Instance* parent() const
|
||||
{
|
||||
return m_parent;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3197,6 +3197,11 @@ bool isSelected() 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 );
|
||||
}
|
||||
}
|
||||
|
||||
void update_selected() const {
|
||||
|
|
|
|||
|
|
@ -1422,6 +1422,11 @@ void allocate( std::size_t size ){
|
|||
|
||||
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();
|
||||
|
|
|
|||
|
|
@ -149,7 +149,10 @@ bool pre( const scene::Path& path, scene::Instance& instance, VolumeIntersection
|
|||
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 ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user