mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 10:17:27 +02:00
[Panorama Viewer] allow to highlight multiple images
This commit is contained in:
parent
a8109444f0
commit
4d169f2b64
1 changed files with 0 additions and 10 deletions
|
@ -120,16 +120,6 @@ AliceVision.PanoramaViewer {
|
||||||
for (var i = 0; i < repeater.model && isHighlightable; i++) {
|
for (var i = 0; i < repeater.model && isHighlightable; i++) {
|
||||||
var highlight = repeater.itemAt(i).item.getMouseCoordinates(mouse.x, mouse.y);
|
var highlight = repeater.itemAt(i).item.getMouseCoordinates(mouse.x, mouse.y);
|
||||||
repeater.itemAt(i).z = highlight ? 2 : 0
|
repeater.itemAt(i).z = highlight ? 2 : 0
|
||||||
if (highlight)
|
|
||||||
{
|
|
||||||
// Disable Highlight for all other images
|
|
||||||
for (let j = 0; j < repeater.model; j++)
|
|
||||||
{
|
|
||||||
if (j === i) continue;
|
|
||||||
repeater.itemAt(j).item.surface.mouseOver = false;
|
|
||||||
repeater.itemAt(i).z = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rotate Panorama
|
// Rotate Panorama
|
||||||
|
|
Loading…
Add table
Reference in a new issue