From a0e7797de5472e917a3bdd49761e5c0c36da8627 Mon Sep 17 00:00:00 2001 From: ffreyer Date: Tue, 28 Mar 2023 14:15:04 +0200 Subject: [PATCH] Make scene.visible trigger render updates --- GLMakie/src/screen.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/GLMakie/src/screen.jl b/GLMakie/src/screen.jl index d39dde37d0a..9a4da884136 100644 --- a/GLMakie/src/screen.jl +++ b/GLMakie/src/screen.jl @@ -435,6 +435,7 @@ function Makie.insertplots!(screen::Screen, scene::Scene) get!(screen.screen2scene, WeakRef(scene)) do id = length(screen.screens) + 1 push!(screen.screens, (id, scene)) + on(_ -> screen.requires_update = true, scene.visible) return id end for elem in scene.plots