From e91907682360cc2872bb34d21ae73df8b6a54dc9 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 9 Apr 2012 16:02:46 +0200 Subject: [PATCH] Apply transformation only from Placement property --- src/Gui/ViewProviderGeometryObject.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Gui/ViewProviderGeometryObject.cpp b/src/Gui/ViewProviderGeometryObject.cpp index ee02a3421..4e17a85e1 100644 --- a/src/Gui/ViewProviderGeometryObject.cpp +++ b/src/Gui/ViewProviderGeometryObject.cpp @@ -172,7 +172,8 @@ void ViewProviderGeometryObject::updateData(const App::Property* prop) trf->setMatrix(m.inverse()); } } - else if (prop->isDerivedFrom(App::PropertyPlacement::getClassTypeId())) { + else if (prop->isDerivedFrom(App::PropertyPlacement::getClassTypeId()) && + strcmp(prop->getName(), "Placement") == 0) { // Note: If R is the rotation, c the rotation center and t the translation // vector then Inventor applies the following transformation: R*(x-c)+c+t // In FreeCAD a placement only has a rotation and a translation part but