From e437b94ce0bea656371612e148e7932f6e1e71f9 Mon Sep 17 00:00:00 2001 From: ffreyer Date: Thu, 4 Jan 2024 13:51:33 +0100 Subject: [PATCH] fix test? --- ReferenceTests/src/tests/primitives.jl | 2 +- src/basic_recipes/voxel.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ReferenceTests/src/tests/primitives.jl b/ReferenceTests/src/tests/primitives.jl index a73f8e0768a..d465e472b90 100644 --- a/ReferenceTests/src/tests/primitives.jl +++ b/ReferenceTests/src/tests/primitives.jl @@ -489,7 +489,7 @@ end # Use same uvs/texture-sections for every side of one voxel id flat_uv_map = [ - Vec4f(x, y, x+1/2, y+1/4) + Vec4f(x, x+1/2, y, y+1/4) for x in range(0.0, 1.0, length = 3)[1:end-1] for y in range(0.0, 1.0, length = 5)[1:end-1] ] diff --git a/src/basic_recipes/voxel.jl b/src/basic_recipes/voxel.jl index c4b8f810178..a8875d32acd 100644 --- a/src/basic_recipes/voxel.jl +++ b/src/basic_recipes/voxel.jl @@ -1,6 +1,6 @@ # used_attributes(::Type{<:Plot}, args...) = (limits,) -function convert_arguments(::Type{<:Voxel}, chunk::Array{<: Any, 3}) +function convert_arguments(::Type{<:Voxel}, chunk::Array) return (Array{UInt8, 3}(undef, size(chunk)),) end function convert_arguments(::Type{<:Voxel}, chunk::Array{UInt8, 3}) @@ -87,7 +87,7 @@ function local_update(plot::Voxel, is::Union{Integer, UnitRange}, js::Union{Inte end Base.@propagate_inbounds function _update_voxel( - output::Array{UInt8, 3}, input::Array{<: Any, 3}, i::Integer, + output::Array{UInt8, 3}, input::Array, i::Integer, is_air::Function, scale, mini::Real, maxi::Real )