From 338b749f218a4cdc947403628aefe2cf21353935 Mon Sep 17 00:00:00 2001 From: porterbot Date: Tue, 27 Aug 2024 10:38:40 -0400 Subject: [PATCH] added code to prevent display of Null Zarr Actors --- .../java/org/janelia/horta/actors/OmeZarrVolumeActor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/HortaTracer/src/main/java/org/janelia/horta/actors/OmeZarrVolumeActor.java b/modules/HortaTracer/src/main/java/org/janelia/horta/actors/OmeZarrVolumeActor.java index c86c55f0a..8b1a670f5 100644 --- a/modules/HortaTracer/src/main/java/org/janelia/horta/actors/OmeZarrVolumeActor.java +++ b/modules/HortaTracer/src/main/java/org/janelia/horta/actors/OmeZarrVolumeActor.java @@ -209,7 +209,8 @@ public void display(GL3 gl, AbstractCamera camera, Matrix4 parentModelViewMatrix List otherActorList = new ArrayList<>(); List otherList = new ArrayList<>(); for (SortableBlockActor actor : dynamicTiles.getDisplayedActors()) { - blockList.add(actor); + if (actor!=null) + blockList.add(actor); } for (Object3d child : getChildren()) { if (child instanceof SortableBlockActorSource) { @@ -220,7 +221,8 @@ public void display(GL3 gl, AbstractCamera camera, Matrix4 parentModelViewMatrix Vector3 maxp = ((OmeZarrVolumeMeshActor)block).getBBoxMax(); ((OmeZarrVolumeMeshActor)block).setDistance(calcDistanceFromCamera(minp, maxp, modelViewMatrix)); } - blockList.add(block); + if (block!=null) + blockList.add(block); } } else if (child instanceof GL3Actor) {