mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +03:00
0027952: Visualization - do not reset RayTracing state on changing structures not in main Z-Layer
This commit is contained in:
@@ -49,7 +49,7 @@ Standard_Boolean OpenGl_View::updateRaytraceGeometry (const RaytraceUpdateMode
|
||||
// modifications. This is light-weight procedure performed on each frame
|
||||
if (theMode == OpenGl_GUM_CHECK)
|
||||
{
|
||||
if (myLayerListState != myZLayers.ModificationState())
|
||||
if (myRaytraceLayerListState != myZLayers.ModificationStateOfRaytracable())
|
||||
{
|
||||
return updateRaytraceGeometry (OpenGl_GUM_PREPARE, theViewId, theGlContext);
|
||||
}
|
||||
@@ -185,7 +185,7 @@ Standard_Boolean OpenGl_View::updateRaytraceGeometry (const RaytraceUpdateMode
|
||||
}
|
||||
|
||||
// Actualize OpenGL layer list state
|
||||
myLayerListState = myZLayers.ModificationState();
|
||||
myRaytraceLayerListState = myZLayers.ModificationStateOfRaytracable();
|
||||
|
||||
// Rebuild two-level acceleration structure
|
||||
myRaytraceGeometry.ProcessAcceleration();
|
||||
|
Reference in New Issue
Block a user