[ Fixed ] [ Bug ] Draft_SelectPlane issue with post-selection

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Roy_043
Veteran
Posts: 8456
Joined: Thu Dec 27, 2018 12:28 pm

[ Fixed ] [ Bug ] Draft_SelectPlane issue with post-selection

Post by Roy_043 »

At the top of the task panel of the Draft_SelectPlane command there is the text: Select a face or.... This suggests that post-selection (= selecting after calling the command) is possible. And indeed it is, but there is a strange issue.

Test:
  1. Make sure the Draft grid is always visible.
  2. Create a default Part_Box.
  3. Make sure nothing is selected.
  4. Call Draft_SelectPlane and press the Top (XY) button.
  5. Again call Draft_SelectPlane.
  6. Select the front face of the box in the 3D view
  7. Click somewhere in the 3D view to confirm.
  8. Result: the WP is correctly aligned with the selected face.
  9. Verify this by starting the Draft_Line command. Cancel that command.
  10. Make sure nothing is selected.
  11. Again call Draft_SelectPlane.
  12. Select the top face of the box in the 3D view
  13. Click somewhere in the 3D view to confirm.
  14. The WP seems to be correctly aligned with the selected face.
  15. Verify this by starting the Draft_Line command.
  16. Result: the WP 'jumps' back to the previous position.
Or should the quoted text be interpreted differently?

Code: Select all

OS: Windows 8.1 (6.3)
Word size of FreeCAD: 64-bit
Version: 0.20.25220 (Git)
Build type: Release
Branch: master
Hash: 46282db7c8c65d1205a4cd03499d4beadb1573c6
Python version: 3.8.10
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: Dutch/Netherlands (nl_NL)
Last edited by Roy_043 on Tue Aug 03, 2021 8:14 am, edited 1 time in total.
marioalexis
Posts: 124
Joined: Wed Jun 19, 2019 7:44 pm

Re: [ Bug ] Draft_SelectPlane issue with post-selection

Post by marioalexis »

This regression is fixed with this pull request: https://github.com/FreeCAD/FreeCAD/pull/4927
It also explains why this and two other bugs occur.
User avatar
Roy_043
Veteran
Posts: 8456
Joined: Thu Dec 27, 2018 12:28 pm

Re: [ Bug ] Draft_SelectPlane issue with post-selection

Post by Roy_043 »

Thanks for your answer. Good to know that this has already been fixed.
marioalexis
Posts: 124
Joined: Wed Jun 19, 2019 7:44 pm

Re: [ Bug ] Draft_SelectPlane issue with post-selection

Post by marioalexis »

marioalexis wrote: Sat Jul 31, 2021 12:23 am This regression is fixed with this pull request: https://github.com/FreeCAD/FreeCAD/pull/4927
It also explains why this and two other bugs occur.
Merged
Post Reply