-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3D] Fix some issues in 3D point cloud editing tools #60917
base: master
Are you sure you want to change the base?
Conversation
Fixes msvc build issue caused by uniqueqobject pointer, we revert back to raw pointers. Fixes QGIS crash on 3D window closed when editing tools are selected. We can't delete QgsRubberBand3D entities from this class as they are owned by RubberBandRootEntity, which deletes them on windows close. Only point rubberbands leave artifacts in scene whene deleted by default destructor.
🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. 🪟 Windows buildsDownload Windows builds of this PR for testing. |
if ( mScreenPoints.size() != 2 ) | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we not support above/below lines with more than 2 points?
I'd move the
if ( mScreenPoints.size() < 3 )
return;
guard at the top of the run method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we not support above/below lines with more than 2 points?
After discussion with @wonder-sk we decided that we will support just 2 points, not more.
I'd move the
if ( mScreenPoints.size() < 3 ) return;guard at the top of the run method.
The thing is we add the screen edges points when using line tool right before that guard
Description
This PR fixes some new issues found while using point cloud editing tools.
SPACE