Skip to content

Commit

Permalink
Merge pull request #411 from dmurdoch/callbackbug
Browse files Browse the repository at this point in the history
Missed passing target to recursive search.
  • Loading branch information
dmurdoch authored Feb 19, 2024
2 parents 0d31d58 + 45f2eda commit 38acbdb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: rgl
Version: 1.2.13
Version: 1.2.15
Title: 3D Visualization Using OpenGL
Authors@R: c(person("Duncan", "Murdoch", role = c("aut", "cre"),
email = "murdoch.duncan@gmail.com"),
Expand Down
5 changes: 4 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# rgl 1.2.14
# rgl 1.2.15

## Major changes

Expand Down Expand Up @@ -29,6 +29,9 @@ run in a Shiny session.
* Smooth shapes were not rendered correctly by `rglwidget()`.
This was especially noticeable for spheres with `fov = 0`, but was present in other cases as well (issue #401).
* `textype = "alpha"` was not rendered correctly by `rglwidget()` (issue #408).
* `setUserCallbacks()` and related functions failed when
the `subscene` argument was anything other than the root
subscene.

# rgl 1.2.1

Expand Down
2 changes: 1 addition & 1 deletion R/setUserCallbacks.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ findSubscene <- function(subscene, id) {
subscenes <- subscene$subscenes
if (!is.null(subscenes)) {
for (i in seq_along(subscenes)) {
if (!is.null(result <- findSubscene(subscenes[[i]])))
if (!is.null(result <- findSubscene(subscenes[[i]], id)))
return(result)
}
}
Expand Down

0 comments on commit 38acbdb

Please sign in to comment.