Hmm, nice suggestion. Made me thinking . I like the idea!ickby wrote:maybe make a own module (not workbench) that provides that functionality. This way everyone can use it without the need to load up Part workbench.
AWESOMEOver the weekend I have worked on extending the undo/redo framework for view providers. Here my branch: https://github.com/wwmayer/FreeCAD/commits/undoredo
I don't think so. The visibility automation works this way:Does it interfere with my visibility automation in sketcher?
From the Document unit tests I could nail it down to the testGroup test that leads to the crash. This is a reduced script showing the behaviour:When running the unit tests then all tests pass as long as the DAG view is switched off. If it's on then an assert is raised in Gui::DAG::findRecord (line 81) but I don't know why.
Code: Select all
Doc = FreeCAD.newDocument("UndoTest") # Add an object to the group L2 = Doc.addObject("App::FeatureTest","Label_2") G1 = Doc.addObject("App::DocumentObjectGroup","Group") G1.addObject(L2) # Remove first object and then the group in one transaction Doc.openTransaction("Remove") Doc.removeObject("Label_2") Doc.removeObject("Group") Doc.commitTransaction() Doc.undo() # <<=== crash