Apply transformation only from Placement property

This commit is contained in:
wmayer 2012-04-09 16:02:46 +02:00
parent e84497ff08
commit e919076823

View File

@ -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