mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0031652: Visualization - crash on highlighting HLR Computed presentation displayed with Shaded display mode
PrsMgr_PresentationManager::displayImmediate() now uses proper ZLayer for a shadow presentation of computed presentation (fixes dynamic highlighting on mouse move). Graphic3d_CView::SetComputedMode() - added invalidation of bounding box on turning OFF compute mode. AIS_ViewController::contextLazyMoveTo() now ignores MoveTo() while rotating view with temporary disabled compute mode (leading to undefined results and crashes). Graphic3d_Structure::Graphic3d_Structure() - do not copy Graphic3d_TOS_COMPUTED visual from linked structure, as Graphic3d_CView::SetComputedMode() does not compute such structures.
This commit is contained in:
@@ -49,8 +49,11 @@ Graphic3d_Structure::Graphic3d_Structure (const Handle(Graphic3d_StructureManage
|
||||
{
|
||||
if (!theLinkPrs.IsNull())
|
||||
{
|
||||
myOwner = theLinkPrs->myOwner;
|
||||
myVisual = theLinkPrs->myVisual;
|
||||
myOwner = theLinkPrs->myOwner;
|
||||
if (theLinkPrs->myVisual != Graphic3d_TOS_COMPUTED)
|
||||
{
|
||||
myVisual = theLinkPrs->myVisual;
|
||||
}
|
||||
myComputeVisual = theLinkPrs->myComputeVisual;
|
||||
myCStructure = theLinkPrs->myCStructure->ShadowLink (theManager);
|
||||
}
|
||||
|
Reference in New Issue
Block a user