1
0
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:
kgv
2016-10-11 22:55:25 +03:00
committed by apn
parent bbbca107a2
commit bd6a845441
5 changed files with 40 additions and 19 deletions

View File

@@ -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();