From 66033dedc7592a588d4335141acf4357d4c0f9d6 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 19 Oct 2011 10:04:16 +0000 Subject: [PATCH] + reorient camera for reversed sketches git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5038 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Mod/Sketcher/Gui/SketchOrientationDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Sketcher/Gui/SketchOrientationDialog.cpp b/src/Mod/Sketcher/Gui/SketchOrientationDialog.cpp index 1862675e9..d9e7872dd 100644 --- a/src/Mod/Sketcher/Gui/SketchOrientationDialog.cpp +++ b/src/Mod/Sketcher/Gui/SketchOrientationDialog.cpp @@ -60,7 +60,7 @@ int SketchOrientationDialog::exec() bool reverse = ui_SketchOrientationDialog.Reverse_checkBox->isChecked(); if (ui_SketchOrientationDialog.XY_radioButton->isChecked()) { if (reverse) { - Pos = Base::Placement(Base::Vector3d(0,0,offset),Base::Rotation(1.0,0.0,0.0,0.0)); + Pos = Base::Placement(Base::Vector3d(0,0,offset),Base::Rotation(-1.0,0.0,0.0,0.0)); DirType = 1; } else { @@ -70,7 +70,7 @@ int SketchOrientationDialog::exec() } else if (ui_SketchOrientationDialog.XZ_radioButton->isChecked()) { if (reverse) { - Pos = Base::Placement(Base::Vector3d(0,offset,0),Base::Rotation(Base::Vector3d(-1,0,0),0.5*M_PI)); + Pos = Base::Placement(Base::Vector3d(0,offset,0),Base::Rotation(Base::Vector3d(0,sqrt(2.0)/2.0,sqrt(2.0)/2.0),M_PI)); DirType = 3; } else {