system: fix orientation constraint

This commit is contained in:
Zheng, Lei 2018-08-30 07:03:50 +08:00
parent 63ebe07d9e
commit 0d633eca83

View File

@ -138,7 +138,7 @@ class SystemExtension(object):
if not yaw and not pitch and not roll:
n = n2.entity
else:
rot = FreeCAD.Rotation(yaw,pitch,roll).multiply(n2.rot)
rot = n2.rot.multiply(FreeCAD.Rotation(yaw,pitch,roll))
e = self.addNormal3dV(*getNormal(rot))
n = self.addTransform(e,*n2.params,group=group)
h.append(self.addSameOrientation(n1.entity,n,group=group))