- for( int i = 0 ; i < myObjects.size() ; i++ ){
- myContext->Display(myObjects[i], Standard_False);
- }
- myContext->UpdateCurrentViewer();
+
+ myObjects.push_back( theObject );
+ myContext->Display( theObject, Standard_False );
+
+ if( isUpdate )
+ myContext->UpdateCurrentViewer();