fix primitive offset setting issues

This commit is contained in:
Stefan Tröger
2015-05-20 20:36:50 +02:00
parent 1cfa8c07ae
commit dda47f7135
2 changed files with 6 additions and 6 deletions

View File

@@ -203,9 +203,9 @@ void CoordinateSystem::onChanged(const App::Property *prop)
Base::Vector3d o1;
plm.getRotation().multVec(Base::Vector3d(1,0,0), o1);
Base::Vector3d o2;
plm.getRotation().multVec(Offset2.getValue()*Base::Vector3d(0,1,0), o2);
plm.getRotation().multVec(Base::Vector3d(0,1,0), o2);
Base::Vector3d o3;
plm.getRotation().multVec(Offset3.getValue()*Base::Vector3d(0,0,1), o3);
plm.getRotation().multVec(Base::Vector3d(0,0,1), o3);
plm.move(Offset.getValue()*o1+Offset2.getValue()*o2+Offset3.getValue()*o3);
Placement.setValue(plm);