Update src/Mod/Sketcher/App/SketchObject.cpp
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
committed by
abdullahtahiriyo
parent
edb87a0663
commit
bfc036daa4
@@ -2330,7 +2330,7 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point)
|
||||
std::swap(x1,x2);
|
||||
}
|
||||
if (x1 >= 0.001*length && x2 <= 0.999*length) {
|
||||
if (x1 < x0 && x2 > x0) { // trim a way a sement in the middle
|
||||
if (x1 < x0 && x2 > x0) { // trim away a segment in the middle
|
||||
int newGeoId = addGeometry(geo);
|
||||
// go through all constraints and replace the point (GeoId,end) with (newGeoId,end)
|
||||
transferConstraints(GeoId, end, newGeoId, end);
|
||||
|
||||
Reference in New Issue
Block a user