Skip to content

Commit

Permalink
Merge branch 'master' into spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Oct 25, 2024
2 parents 92c8fd1 + f0b3a86 commit a88a239
Show file tree
Hide file tree
Showing 11 changed files with 383 additions and 225 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Use polys for axis3 [#4463](https://github.com/MakieOrg/Makie.jl/pull/4463).
- Changed default for `circular_rotation` in Camera3D to false, so that the camera doesn't change rotation direction anymore [4492](https://github.com/MakieOrg/Makie.jl/pull/4492)
- Fixed `pick(scene, rect2)` in WGLMakie [#4488](https://github.com/MakieOrg/Makie.jl/pull/4488)
- Fixed resizing of `surface` data not working correctly. (I.e. drawing out-of-bounds data or only drawing part of the data.) [#4529](https://github.com/MakieOrg/Makie.jl/pull/4529)

## [0.21.14] - 2024-10-11

Expand Down
1 change: 1 addition & 0 deletions GLMakie/src/drawing_primitives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,7 @@ function draw_atomic(screen::Screen, scene::Scene, plot::Surface)
gl_attributes[:image] = Texture(img; minfilter=interp)

@assert to_value(plot[3]) isa AbstractMatrix
gl_attributes[:instances] = map(z -> (size(z,1)-1) * (size(z,2)-1), plot[3])
types = map(v -> typeof(to_value(v)), plot[1:2])

if all(T -> T <: Union{AbstractMatrix, AbstractVector}, types)
Expand Down
2 changes: 1 addition & 1 deletion GLMakie/src/picking.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function Makie.pick_closest(scene::Scene, screen::Screen, xy, range)
sids = zeros(SelectionID{UInt32}, dx, dy)
glReadPixels(x0, y0, dx, dy, buff.format, buff.pixeltype, sids)

min_dist = floatmax(Float32)
min_dist = ppu * ppu * range * range
id = SelectionID{Int}(0, 0)
x, y = xy .* ppu .+ 1 .- Vec2f(x0, y0)
for i in 1:dx, j in 1:dy
Expand Down
Loading

0 comments on commit a88a239

Please sign in to comment.