EgtGraphics 1.5j5 :
- aggiunta gestione entità da non selezionare (Unselectable).
This commit is contained in:
+8
-4
@@ -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 ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user