EgtGraphics 1.5j5 :

- aggiunta gestione entità da non selezionare (Unselectable).
This commit is contained in:
Dario Sassi
2014-10-21 10:50:02 +00:00
parent f8a508fa7b
commit e1e4af8792
4 changed files with 61 additions and 5 deletions
+8 -4
View File
@@ -116,18 +116,22 @@ Scene::DrawGroup( const IGdbIterator& iIter, int nPass, MdStMk cParent)
int nMark = GDB_MK_OFF ;
pIter->GetMark( nMark) ;
nMark = ::CalcMark( nMark, cParent.nMark) ;
// se in modalità selezione, verifico sia selezionabile
bool bSel = true ;
if ( m_bSelect && UnselectableFind( pIter->GetId()))
bSel = false ;
// se oggetto geometrico
if ( nGdbType == GDB_TY_GEO) {
// se non nascosto, lo disegno
if ( nStat != GDB_ST_OFF) {
// se non nascosto e selezionabile, lo disegno
if ( nStat != GDB_ST_OFF && bSel) {
if ( ! DrawGeoObj( *pIter, nPass, MdStMk( nMode, nStat, nMark)))
bOk = false ;
}
}
// se gruppo
else if ( nGdbType == GDB_TY_GROUP) {
// se non nascosto, lo disegno
if ( nStat != GDB_ST_OFF) {
// se non nascosto e selezionabile, lo disegno
if ( nStat != GDB_ST_OFF && bSel) {
if ( ! DrawGroup( *pIter, nPass, MdStMk( nMode, nStat, nMark)))
bOk = false ;
}