mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-24 16:30:35 +05:00
Fixed a regression: wrong display of shape by choosing different shape type when exploding a shape
This commit is contained in:
parent
96ecf49b16
commit
ac4bdd2286
@ -739,24 +739,21 @@ void EntityGUI_SubShapeDlg::activateSelection()
|
||||
new SALOME_InteractiveObject (aMainEntry.in(), "GEOM", "TEMP_IO");
|
||||
if ( view->isVisible( io ) ) {
|
||||
Handle(GEOM_AISShape) aSh = GEOMBase::ConvertIOinGEOMAISShape( io, true );
|
||||
if(!aSh.IsNull()) {
|
||||
if(!aSh.IsNull())
|
||||
myDmMode = aSh->isTopLevel() ? aSh->prevDisplayMode() : aSh->DisplayMode();
|
||||
}
|
||||
// Hide main shape, if explode on VERTEX
|
||||
if (shapeType() != TopAbs_VERTEX) {
|
||||
aDisplayer->Erase(myObject, false, false);
|
||||
myIsHiddenMain = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
myDmMode = SUIT_Session::session()->resourceMgr()->integerValue( "Geometry", "display_mode" );
|
||||
}
|
||||
}
|
||||
// Mantis issue 0021421: do not hide main shape, if explode on VERTEX
|
||||
if (shapeType() == TopAbs_VERTEX) {
|
||||
if (myIsHiddenMain)
|
||||
aDisplayer->Display(myObject);
|
||||
if (shapeType() != TopAbs_VERTEX) {
|
||||
aDisplayer->Erase(myObject, false, false);
|
||||
myIsHiddenMain = true;
|
||||
}
|
||||
else
|
||||
aDisplayer->Display(myObject);
|
||||
|
||||
aDisplayer->SetDisplayMode(myDmMode);
|
||||
|
||||
if(!isApply) {
|
||||
|
Loading…
Reference in New Issue
Block a user