Further doubel suggestions from Jan
Moved Gui/InputVector,Placement,Transform from float to double Moved Sketcher from float to double more suggestions for moving float -> double
This commit is contained in:
@@ -278,7 +278,7 @@ void DefaultTransformStrategy::onSelectionChanged(const Gui::SelectionChanges& m
|
||||
}
|
||||
|
||||
if (!filter.empty()) {
|
||||
std::set<App::DocumentObject*> diff;
|
||||
std::set<App::DocumentObject*> diff;
|
||||
std::insert_iterator< std::set<App::DocumentObject*> > biit(diff, diff.begin());
|
||||
std::set_difference(update_selection.begin(), update_selection.end(),
|
||||
filter.begin(), filter.end(), biit);
|
||||
@@ -286,7 +286,7 @@ void DefaultTransformStrategy::onSelectionChanged(const Gui::SelectionChanges& m
|
||||
}
|
||||
|
||||
// reset transform for all deselected objects
|
||||
std::vector<App::DocumentObject*> diff;
|
||||
std::vector<App::DocumentObject*> diff;
|
||||
std::back_insert_iterator< std::vector<App::DocumentObject*> > biit(diff);
|
||||
std::set_difference(selection.begin(), selection.end(),
|
||||
update_selection.begin(), update_selection.end(), biit);
|
||||
@@ -408,7 +408,7 @@ void Transform::directionActivated(int index)
|
||||
}
|
||||
}
|
||||
|
||||
Base::Vector3f Transform::getDirection() const
|
||||
Base::Vector3d Transform::getDirection() const
|
||||
{
|
||||
return ui->getDirection();
|
||||
}
|
||||
@@ -424,7 +424,7 @@ Base::Placement Transform::getPlacementData() const
|
||||
cnt = Base::Vector3d(ui->xCnt->value(),ui->yCnt->value(),ui->zCnt->value());
|
||||
|
||||
if (index == 0) {
|
||||
Base::Vector3f dir = getDirection();
|
||||
Base::Vector3d dir = getDirection();
|
||||
rot.setValue(Base::Vector3d(dir.x,dir.y,dir.z),ui->angle->value()*D_PI/180.0);
|
||||
}
|
||||
else if (index == 1) {
|
||||
|
||||
Reference in New Issue
Block a user