//#include "GLViewerAfx.h"
#include "GLViewer_Group.h"
#include "GLViewer_Object.h"
//#include "GLViewerAfx.h"
#include "GLViewer_Group.h"
#include "GLViewer_Object.h"
//Function: dragingObjects
//Description:
//--------------------------------------------------------------------------
//Function: dragingObjects
//Description:
//--------------------------------------------------------------------------
- OGIterator it = myList.begin();
- OGIterator end_it = myList.end();
- for( int i = 0; it != end_it; ++it, i++ )
- if( (*it)->isSelected() )
- mySelObjNum++;
+ if( !mySelObjNum )
+ {
+ OGIterator it = myList.begin();
+ OGIterator end_it = myList.end();
+ for( int i = 0; it != end_it; ++it, i++ )
+ if( (*it)->isSelected() )
+ mySelObjNum++;