* fix RadiantSelectionSystem::getSelectionAABB() for PlaneSelectables

This commit is contained in:
Garux
2018-03-21 03:03:41 +03:00
parent 43202af380
commit 54a98ed5e8
2 changed files with 3 additions and 7 deletions

View File

@@ -1771,8 +1771,7 @@ class LightInstance :
public SelectionTestable,
public RendererLight,
public PlaneSelectable,
public ComponentSelectionTestable,
public ComponentEditable
public ComponentSelectionTestable
{
class TypeCasts
{
@@ -1787,7 +1786,6 @@ TypeCasts(){
InstanceStaticCast<LightInstance, Transformable>::install( m_casts );
InstanceStaticCast<LightInstance, PlaneSelectable>::install( m_casts );
InstanceStaticCast<LightInstance, ComponentSelectionTestable>::install( m_casts );
InstanceStaticCast<LightInstance, ComponentEditable>::install( m_casts );
InstanceIdentityCast<LightInstance>::install( m_casts );
}
InstanceTypeCastTable& get(){
@@ -1878,10 +1876,6 @@ void setSelectedComponents( bool select, SelectionSystem::EComponentMode mode ){
void testSelectComponents( Selector& selector, SelectionTest& test, SelectionSystem::EComponentMode mode ){
}
const AABB& getSelectedComponentsBounds() const {
return m_contained.aabb();
}
void selectedChangedComponent( const Selectable& selectable ){
GlobalSelectionSystem().getObserver ( SelectionSystem::eComponent )( selectable );
GlobalSelectionSystem().onComponentSelection( *this, selectable );