Skip to content

Commit

Permalink
added code to prevent display of Null Zarr Actors
Browse files Browse the repository at this point in the history
  • Loading branch information
porterbot committed Aug 27, 2024
1 parent d5d2b03 commit 338b749
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ public void display(GL3 gl, AbstractCamera camera, Matrix4 parentModelViewMatrix
List<GL3Actor> otherActorList = new ArrayList<>();
List<Object3d> 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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 338b749

Please sign in to comment.