FreeCAD/src/Mod/Sketcher
Abdullah Tahiri 56c29e27f7 Sketcher: Bug fix: Building Vertex Index on Restore
===================================================

The bug was introduced by myself here:
47c0859c1b

[code]
void SketchObject::onDocumentRestored()
 {
     try {
-        rebuildExternalGeometry();
+        if(Support.getValue()) {
+            validateExternalLinks();
+            rebuildExternalGeometry();
+        }
         Constraints.acceptGeometry(getCompleteGeometry());
     }
[/code]

The issue is that "rebuildExternalGeometry" calls "rebuildVertexIndex". So for any sketch not having external geometry, if you open it, select everything and hit del, you will have a crash because
I effectively removed the creation of the index in this dossier. You won't have one if you do anything rebuilding the index before hitting del, like creating geometry, though.
2015-09-28 11:42:56 +02:00
..
App Sketcher: Bug fix: Building Vertex Index on Restore 2015-09-28 11:42:56 +02:00
Gui Bug fix: deletion of groups of external geometry 2015-09-28 11:14:30 +02:00
ProfileLib Sketcher: new Feature: Group creation of Sketcher geometry and other improvements and bug fixes 2015-06-15 22:56:36 +02:00
Templates remove support for automake 2014-11-26 10:26:30 +01:00
CMakeLists.txt Merge remote-tracking branch 'refs/remotes/origin/jriegel/NewWinBuild' into jriegel/review-NewLibPack 2014-08-27 15:39:00 +02:00
Init.py + remove useless stuff from Init files 2015-01-13 16:19:19 +01:00
InitGui.py issue #1701 removed further except: statements 2014-09-17 11:57:32 +02:00
Profiles.py + optimize creation of hexagonal sketch profile, add icon 2014-06-04 12:05:41 +02:00
sketcher.dox + unify DLL export defines to namespace names 2011-10-10 13:44:52 +00:00
SketcherExample.py + unify DLL export defines to namespace names 2011-10-10 13:44:52 +00:00
TestSketcherApp.py + unify DLL export defines to namespace names 2011-10-10 13:44:52 +00:00
TestSketcherGui.py + unify DLL export defines to namespace names 2011-10-10 13:44:52 +00:00