// =======================================================================
void OpenGl_Structure::SetTransformPersistence (const Handle(Graphic3d_TransformPers)& theTrsfPers)
{
+ if ((myTrsfPers.IsNull() || theTrsfPers.IsNull()) && myTrsfPers != theTrsfPers)
+ {
+ ++myModificationState;
+ }
myTrsfPers = theTrsfPers;
updateLayerTransformation();
}
Standard_Boolean OpenGl_Structure::IsRaytracable() const
{
if (!myGroups.IsEmpty()
- && myIsRaytracable)
+ && myIsRaytracable
+ && myTrsfPers.IsNull())
{
return Standard_True;
}