Merge pull request #25848 from PaddleStroke/sk_scale_distances
Sketcher: Distance constraints: scale label distance on creation.
This commit is contained in:
@@ -2304,6 +2304,8 @@ int SketchObject::addConstraints(const std::vector<Constraint*>& ConstraintList)
|
||||
}
|
||||
|
||||
addGeometryState(cnew);
|
||||
|
||||
signalConstraintAdded(cnew);
|
||||
}
|
||||
|
||||
this->Constraints.setValues(std::move(newVals));
|
||||
@@ -2377,6 +2379,8 @@ int SketchObject::addConstraint(std::unique_ptr<Constraint> constraint)
|
||||
|
||||
addGeometryState(constNew);
|
||||
|
||||
signalConstraintAdded(constNew);
|
||||
|
||||
newVals.push_back(constNew);// add new constraint at the back
|
||||
|
||||
this->Constraints.setValues(std::move(newVals));
|
||||
|
||||
@@ -973,6 +973,7 @@ public:
|
||||
// Signaled when solver has done update
|
||||
fastsignals::signal<void()> signalSolverUpdate;
|
||||
fastsignals::signal<void()> signalElementsChanged;
|
||||
fastsignals::signal<void(Constraint*)> signalConstraintAdded;
|
||||
|
||||
Part::TopoShape buildInternals(const Part::TopoShape& edges) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user