mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-08 18:40:55 +03:00
0025661: Visualization - AIS_InteractiveContext::Load() is not symmetric to the local context method
Register theIObj in the selection manager to prepare further activation of selection
This commit is contained in:
parent
cbff1e5531
commit
89cc29b0b5
@ -471,13 +471,21 @@ void AIS_InteractiveContext::Load (const Handle(AIS_InteractiveObject)& theIObj,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (theSelMode == -1
|
if (theSelMode == -1
|
||||||
&& !theToAllowDecomposition
|
&& !theToAllowDecomposition)
|
||||||
&& !myObjects.IsBound (theIObj))
|
|
||||||
{
|
{
|
||||||
Standard_Integer aDispMode, aHiMod, aSelModeDef;
|
if (!myObjects.IsBound (theIObj))
|
||||||
GetDefModes (theIObj, aDispMode, aHiMod, aSelModeDef);
|
{
|
||||||
Handle(AIS_GlobalStatus) aStatus = new AIS_GlobalStatus (AIS_DS_Erased, aDispMode, aSelModeDef);
|
Standard_Integer aDispMode, aHiMod, aSelModeDef;
|
||||||
myObjects.Bind (theIObj, aStatus);
|
GetDefModes (theIObj, aDispMode, aHiMod, aSelModeDef);
|
||||||
|
Handle(AIS_GlobalStatus) aStatus = new AIS_GlobalStatus (AIS_DS_Erased, aDispMode, aSelModeDef);
|
||||||
|
myObjects.Bind (theIObj, aStatus);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Register theIObj in the selection manager to prepare further activation of selection
|
||||||
|
if (!mgrSelector->Contains (theIObj))
|
||||||
|
{
|
||||||
|
mgrSelector->Load (theIObj);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user