Core: Do not set to XY plane by default if the rotation of the image doesn't match

This commit is contained in:
wmayer
2024-09-28 19:05:52 +02:00
parent 09e140cf19
commit 112f4a2d29
2 changed files with 4 additions and 3 deletions

View File

@@ -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(),

View File

@@ -27,9 +27,6 @@
<property name="text">
<string>XY-Plane</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>