Core: Do not set to XY plane by default if the rotation of the image doesn't match
This commit is contained in:
@@ -416,6 +416,10 @@ void TaskImage::updatePlacement()
|
||||
else if (ui->YZ_radioButton->isChecked()) {
|
||||
rot.setYawPitchRoll(90. - dir, -angle, 90.);
|
||||
}
|
||||
else if (!feature.expired()) {
|
||||
Base::Placement plm = feature->Placement.getValue();
|
||||
rot = plm.getRotation();
|
||||
}
|
||||
// NOLINTEND
|
||||
|
||||
Base::Vector3d offset = Base::Vector3d(ui->spinBoxX->value().getValue(),
|
||||
|
||||
@@ -27,9 +27,6 @@
|
||||
<property name="text">
|
||||
<string>XY-Plane</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
||||
Reference in New Issue
Block a user