Repository navigation
Fix the pybind reference bug of get_view_control() - #6116
Merged
Merged
Conversation
|
Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes. |
3 tasks done
3 tasks done
|
this is a pretty nasty bug, is this repo dead? |
Jianghanxiao
approved these changes
May 25, 2023
|
Any progress on this pull request? |
ssheorey
approved these changes
Jun 12, 2023
Member
|
Thanks @eamonn-zh for this bug fix and to @Kemo-Huang @identxxy and others for investigating this. |
|
@ssheorey can this be released to pypi? |
Closed
3 tasks done
Contributor
|
Hi, this PR breaks the const correctness on the C++ side. Have you tried to explicit the lambda return type before removing the const overload? Something like: .def(
"get_view_control",
[](Visualizer &vis) -> &GetViewControl { return vis.GetViewControl(); },
"Function to retrieve the associated ``ViewControl``",
py::return_value_policy::reference_internal) |
3 tasks done
|
The bug refixed of version 1.7.0 hasn't been released to pypi. I also countered this problem |
Closed
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
Motivation and Context
Resolves the issue reported in #6009 that
Visualizer.get_view_control()is expected to return a reference but it actually returns a copy, this problem does not exist in older versions of Open3D.Checklist:
python util/check_style.py --applyto apply Open3D code styleto my code.
updated accordingly.
results (e.g. screenshots or numbers) here.
Description
Updated the pybind code and fixed the reference issue.
This change isβ