Draft: Fix for PR10673 (#10699)

Fixes an issue that was missed in #10673.
This commit is contained in:
Roy-043
2023-09-16 17:10:02 +02:00
committed by GitHub
parent 887e8f63fc
commit 563ed76b44

View File

@@ -502,6 +502,9 @@ class ViewProviderLinearDimension(ViewProviderDimensionBase):
rot1[2], rot1[3]))
self.transDimOvershoot2.rotation.setValue((rot1[0], rot1[1],
rot1[2], rot1[3]))
self.trot = rot1
else:
self.trot = (0, 0, 0, 1)
if hasattr(vobj, "FlipArrows") and vobj.FlipArrows:
u = u.negative()
@@ -535,7 +538,6 @@ class ViewProviderLinearDimension(ViewProviderDimensionBase):
else:
offset = DraftVecUtils.scaleTo(v1, 0.05)
self.trot = rot1
if hasattr(vobj, "FlipText") and vobj.FlipText:
_rott = App.Rotation(self.trot[0], self.trot[1], self.trot[2], self.trot[3])
self.trot = _rott.multiply(App.Rotation(App.Vector(0, 0, 1), 180)).Q