Attacher: fix superPlacement applied twice in some cases
superPlacement was applied twice on line and point attachment modes that re-use 3d attachment modes code. Fixed.
This commit is contained in:
parent
431373823d
commit
d6a3d1b140
|
@ -1509,6 +1509,7 @@ Base::Placement AttachEngineLine::calculateAttachedPlacement(Base::Placement ori
|
|||
AttachEngine3D attacher3D;
|
||||
attacher3D.setUp(*this);
|
||||
attacher3D.mapMode = mmode;
|
||||
attacher3D.superPlacement = Base::Placement(); //superplacement is applied separately here, afterwards. So we are resetting it in sub-attacher to avoid applying it twice!
|
||||
plm = attacher3D.calculateAttachedPlacement(origPlacement);
|
||||
plm *= presuperPlacement;
|
||||
}
|
||||
|
@ -1677,6 +1678,7 @@ Base::Placement AttachEnginePoint::calculateAttachedPlacement(Base::Placement or
|
|||
AttachEngine3D attacher3D;
|
||||
attacher3D.setUp(*this);
|
||||
attacher3D.mapMode = mmode;
|
||||
attacher3D.superPlacement = Base::Placement(); //superplacement is applied separately here, afterwards. So we are resetting it in sub-attacher to avoid applying it twice!
|
||||
plm = attacher3D.calculateAttachedPlacement(origPlacement);
|
||||
}
|
||||
plm *= this->superPlacement;
|
||||
|
|
Loading…
Reference in New Issue
Block a user