Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FreeCAD
FreeCAD
Commits
2a401ee8
Commit
2a401ee8
authored
Dec 08, 2012
by
logari81
Browse files
Sketcher: Fix deletion of coincident constraints on the root point
parent
db901921
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Mod/Sketcher/App/SketchObject.cpp
View file @
2a401ee8
...
...
@@ -410,7 +410,11 @@ int SketchObject::delConstraintOnPoint(int VertexId, bool onlyCoincident)
{
int
GeoId
;
PointPos
PosId
;
getGeoVertexIndex
(
VertexId
,
GeoId
,
PosId
);
if
(
VertexId
==
-
1
)
{
// RootPoint
GeoId
=
-
1
;
PosId
=
start
;
}
else
getGeoVertexIndex
(
VertexId
,
GeoId
,
PosId
);
return
delConstraintOnPoint
(
GeoId
,
PosId
,
onlyCoincident
);
}
...
...
src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
View file @
2a401ee8
...
...
@@ -3349,6 +3349,8 @@ bool ViewProviderSketch::onDelete(const std::vector<std::string> &subList)
delGeometries
.
insert
(
GeoId
);
else
delCoincidents
.
insert
(
VtId
);
}
else
if
(
*
it
==
"RootPoint"
)
{
delCoincidents
.
insert
(
-
1
);
}
else
if
(
it
->
size
()
>
10
&&
it
->
substr
(
0
,
10
)
==
"Constraint"
)
{
int
ConstrId
=
std
::
atoi
(
it
->
substr
(
10
,
4000
).
c_str
());
delConstraints
.
insert
(
ConstrId
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment