From 84f10dd77bd6e203499e65e9fa6170a60e7244af Mon Sep 17 00:00:00 2001 From: SimonDanisch Date: Wed, 21 Aug 2019 15:24:21 +0200 Subject: [PATCH] fixes --- src/basic_recipes/axis.jl | 2 +- src/camera/camera2d.jl | 2 +- src/scenes.jl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/basic_recipes/axis.jl b/src/basic_recipes/axis.jl index 441c6d3d3..60767acce 100644 --- a/src/basic_recipes/axis.jl +++ b/src/basic_recipes/axis.jl @@ -524,7 +524,7 @@ function plot!(scene::SceneLike, ::Type{<: Axis2D}, attributes::Attributes, args lift.((dim2,), (cplot.showgrid, cplot.showticks))..., g_args..., t_args..., f_args..., ti_args... ) - push!(scene.plots, cplot) + push!(scene, cplot) return cplot end diff --git a/src/camera/camera2d.jl b/src/camera/camera2d.jl index 85dd7bb09..a5fdce411 100644 --- a/src/camera/camera2d.jl +++ b/src/camera/camera2d.jl @@ -179,7 +179,7 @@ function selection_rect!(scene, cam, key) lw = 2f0 scene_unscaled = Scene( scene, transformation = Transformation(), - cam = copy(camera(scene)), clear = false + cam = copy(camera(scene)), clear = false, raw = true ) scene_unscaled.clear = false scene_unscaled.updated = Node(false) diff --git a/src/scenes.jl b/src/scenes.jl index 11fb90959..7203e053d 100644 --- a/src/scenes.jl +++ b/src/scenes.jl @@ -466,7 +466,7 @@ plots_from_camera(scene::Scene) = plots_from_camera(scene, scene.camera) function plots_from_camera(scene::Scene, camera::Camera, list = AbstractPlot[]) append!(list, scene.plots) for child in scene.children - child.camera == camera && plots_from_camera(child, camera, list) + child.camera == camera && !child.raw[] && plots_from_camera(child, camera, list) end list end