From 73e5931afaeb40c150df74ead5cf7a74c0b2fa90 Mon Sep 17 00:00:00 2001 From: William Moore Date: Thu, 14 Mar 2019 01:26:17 +0000 Subject: [PATCH] Fix unloading of ROIs on play-movie if not needed Only unload if we have an image with many ROIs where we need to load by plane --- src/regions/regions-list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/regions/regions-list.js b/src/regions/regions-list.js index fc6e44f85..b1fc8f155 100644 --- a/src/regions/regions-list.js +++ b/src/regions/regions-list.js @@ -263,7 +263,8 @@ export default class RegionsList extends EventSubscriber { let last_plane = image_info.dimensions['max_' + params.dim] - 1; let dim_value = image_info.dimensions[params.dim]; // If movie is playing and we're not on the last plane - ignore - if (image_config.is_movie_playing && dim_value < last_plane) { + if (image_config.is_movie_playing && dim_value < last_plane && + this.regions_info.isRoiLoadingPaginatedByPlane()) { this.regions_info.resetRegionsInfo(); return; }