Skip to content
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

[realthunder/Link Branch] Bug in sketcher constraints handling when referencing constraints of the same sketch #974

Closed
2 tasks done
DenkBrettl opened this issue Mar 22, 2024 · 0 comments

Comments

@DenkBrettl
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Version

0.21 (Development)

Full version info

[code]
OS: Ubuntu 22.04.4 LTS (LXQt/Lubuntu)
Word size of FreeCAD: 64-bit
Version: 2024.322.0.14555 (Git shallow) AppImage
Build type: Release
Branch: (HEAD detached at 20240322stable)
Hash: da98001cfe5cc50cb2e9e4c241626d07dd4b06f5
Python 3.11.6, Qt 5.15.8, Coin 4.0.1, Vtk 9.2.5, OCC 7.7.1
Locale: English/United States (en_US)
Installed mods: 
  * sheetmetal 0.3.13
  * Plot 2022.4.17
  * CfdOF 1.24.9
  * fasteners 0.4.75
  * parts_library
[/code]

Subproject(s) affected?

None

Problem description

There's a bug when removing constraints. Here's how to reproduce it:

  • Sketcher Workbench
  • New sketch on XY-Plane
  • Draw circle on origin
  • Constrain diameter (I used 10mm)
  • Draw rectangle, one corner starting in origin
  • Constrain horizontal length (I used 20mm)
  • Add name to horizontal length constraint (I used "w")
  • Add constraint for vertical length -> Formula -> .Constraints.w / 2
  • Remove diameter constraint from circle
    -> The formula of the vertical constraint suddenly moves to the horizontal constraint, creating a circular dependency

Seems like some sort of internal list isn't updated correctly / de-synchronized?

Thanks!

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant