GithubHelp home page GithubHelp logo

Comments (6)

nazar-pc avatar nazar-pc commented on July 23, 2024

A few more details, trying to delete external edge after such "Undo" results in this:

15:06:41  pyException: Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to delete an external geometry with the given index: 0
15:06:41  Core#PcieSlotPanelMount: App.getDocument('Core').getObject('Sketch004').delExternal(0)
15:06:41  ViewProviderSketch: Not able to delete an external geometry with the given index: 0

Looks like UI is not synced with some internal data structures or something.

File "<string>", line 1, in <module> is also not particularly helpful for debugging purposes 🙃

from freecad.

maxwxyz avatar maxwxyz commented on July 23, 2024

is this also happening in the stable 0.21.2 version?
@PaddleStroke @FlachyJoe FYI

from freecad.

nazar-pc avatar nazar-pc commented on July 23, 2024

Honestly never used stable before and this project created with dev build fails to load in it 🙈

from freecad.

nazar-pc avatar nazar-pc commented on July 23, 2024

Wanted to test on stable, but couldn't due to FreeCAD/FreeCAD-Bundle#270

from freecad.

PaddleStroke avatar PaddleStroke commented on July 23, 2024

I can reproduce.
I have just tested on 0.20 and the bug is already there.

My guess is that there is a problem in the commands opening/closing.
Probably the creation of external opens a command. Then the linking opens another command before the first is commited. So the first command is not on the undo stack. So when you undo it will undo the linking, then undo again will undo whatever you have done before.

from freecad.

PaddleStroke avatar PaddleStroke commented on July 23, 2024

I had a quick look, it appears that I was wrong. The command is actually reverted correctly.
If you undo, the external geo is still in the list, but if you click on recompute it disappear.

So my new guess is that the Undo does not call rebuildExternalGeometry() but only removes the external geo from the ExternalGeometry list.

from freecad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.