Skip to content

Commit

Permalink
fix add_cycle_attributes! for nested attributes (#1615)
Browse files Browse the repository at this point in the history
Custom recipes with nested attributes won't work otherwise, because
`getindex(::Attributes)` fails.
  • Loading branch information
hexaeder authored Jan 31, 2022
1 parent 30c27d4 commit 85a6d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/makielayout/layoutables/axis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ function add_cycle_attributes!(allattrs, P, cycle::Cycle, cycler::Cycler, palett
# because if there were any, these are looked up directly
# in the cycler without advancing the counter etc.
manually_cycled_attributes = filter(keys(allattrs)) do key
allattrs[key][] isa Cycled
to_value(allattrs[key]) isa Cycled
end

# if there are any manually cycled attributes, we don't do the normal
Expand Down

0 comments on commit 85a6d14

Please sign in to comment.