Skip to content
This repository was archived by the owner on Jul 13, 2021. It is now read-only.

Commit faa7a02

Browse files
committed
fix raw, camera theme
1 parent f2dd146 commit faa7a02

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/interfaces.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,11 +615,16 @@ function plot!(scene::SceneLike, ::Type{PlotType}, attributes::Attributes, input
615615
# create "empty" plot type - empty meaning containing no plots, just attributes + arguments
616616
scene_attributes = extract_scene_attributes!(attributes)
617617
plot_object = PlotType(scene, copy(attributes), input, args)
618-
# TODO warn about rest - should be unused arguments!
619618
# transfer the merged attributes from theme and user defined to the scene
620619
for (k, v) in scene_attributes
621620
scene.attributes[k] = v
622621
end
622+
# We allow certain scene attributes to be part of the plot theme
623+
for k in (:camera, :raw)
624+
if haskey(plot_object, k)
625+
scene.attributes[k] = plot_object[k]
626+
end
627+
end
623628
for (at1, at2) in mutual_exclusive_attributes(PlotType)
624629
#nothing here to get around defaults in GLVisualize
625630
haskey(attributes, at1) && haskey(attributes, at2) && error("$at1 conflicts with $at2, please specify only one.")

0 commit comments

Comments
 (0)