const char* tmpName = "__InPlaceObj__";
// remove old InPlaceObj
if ( !myInPlaceObj->_is_nil() ) {
+ if ( myInPlaceObjSelectWay == GET_IN_PLACE ) // hide temporary object
+ GEOM_Displayer(getStudy()).Erase( myInPlaceObj, true );
if (_PTR(SObject) SO = getStudy()->studyDS()->FindObject( tmpName )) {
getStudy()->studyDS()->NewBuilder()->RemoveObjectWithChildren( SO );
getGeomEngine()->RemoveObject(myInPlaceObj);
myMain2InPlaceIndices.Bind( aMainIndex, aPlaceIndex );
}
}
+ myInPlaceObjSelectWay = subSelectionWay();
}
//=================================================================================
GEOM::GEOM_Object_var myMainObj;
GEOM::GEOM_Object_var myGroup;
GEOM::GEOM_Object_var myInPlaceObj;
+ int myInPlaceObjSelectWay;
TColStd_DataMapOfIntegerInteger myMain2InPlaceIndices;
QPushButton* mySelBtn;