diff --git a/cvat-ui/src/components/annotation-page/canvas/views/canvas2d/canvas-wrapper.tsx b/cvat-ui/src/components/annotation-page/canvas/views/canvas2d/canvas-wrapper.tsx index 9ecd1efd0a68..a9caf872d576 100644 --- a/cvat-ui/src/components/annotation-page/canvas/views/canvas2d/canvas-wrapper.tsx +++ b/cvat-ui/src/components/annotation-page/canvas/views/canvas2d/canvas-wrapper.tsx @@ -935,7 +935,7 @@ class CanvasWrapperComponent extends React.PureComponent { const imageIsNotProcessed = imageFilters.some((imageFilter: ImageFilter) => ( imageFilter.modifier.currentProcessedImage !== frame )); - + console.log(imageIsNotProcessed); if (imageIsNotProcessed) { try { const { renderWidth, renderHeight, imageData: imageBitmap } = originalImage; diff --git a/cvat-ui/src/reducers/settings-reducer.ts b/cvat-ui/src/reducers/settings-reducer.ts index 82ce68da982a..a3917329fd3d 100644 --- a/cvat-ui/src/reducers/settings-reducer.ts +++ b/cvat-ui/src/reducers/settings-reducer.ts @@ -462,6 +462,10 @@ export default (state = defaultState, action: AnyAction): SettingsState => { case BoundariesActionTypes.RESET_AFTER_ERROR: case AnnotationActionTypes.GET_JOB_SUCCESS: { const { job } = action.payload; + const filters = [...state.imageFilters]; + filters.forEach((imageFilter) => { + imageFilter.modifier.currentProcessedImage = null; + }); return { ...state, @@ -477,6 +481,7 @@ export default (state = defaultState, action: AnyAction): SettingsState => { } : {}), }, + imageFilters: filters, }; } case AnnotationActionTypes.INTERACT_WITH_CANVAS: {