DeepSOIC / Part-o-magic

Experiment on FreeCAD-wide automation of Part container management. For FC v0.17-0.18
Other
12 stars 4 forks source link

Replace button remains inactive sometimes #66

Open DeepSOIC opened 1 year ago

DeepSOIC commented 1 year ago

had it when i made a cut operation into a loft, and then wanted to replace all refs to the loft with the cut version. Selecting from tree didn't work (button was inactive), but selecting in 3d view worked fine.

OS: Windows 10 Version 2009 Word size of FreeCAD: 64-bit Version: 0.20.26155 (Git) Build type: Release Branch: master Hash: 0926a4148bcff11249fd4f56bc30256102ffe105 Python version: 3.8.6+ Qt version: 5.15.2 Coin version: 4.0.1 OCC version: 7.5.0 Locale: English/Germany (en_DE)

DeepSOIC commented 1 year ago

Steps to reproduce:

  1. create Module
  2. add two Part primitives
  3. do a boolean cut
  4. select one of the primitives and the Cut in Model tree

-> replace button is inactive -> Gui.GetSelection() and Gui.GetSelectionEx() both return one selected object, while there clearly are two. It's an API bug, may be fixed in newer FreeCAD.

DeepSOIC commented 1 year ago

https://forum.freecad.org/viewtopic.php?t=77214