[Bugfix]Sketcher: fix cross section side switch not working except for XY plane

This commit is contained in:
0penBrain
2023-06-24 09:45:09 +02:00
parent 542223f5b6
commit 88d0fad307

View File

@@ -450,9 +450,7 @@ class TempoVis(object):
toggle = {False: 0, True: 1, None: -1}[enable]
if reverted:
skNorm = pla.Rotation.multVec(App.Vector(0,0,1))
skInvNorm = skNorm.negative()
pla = pla * App.Rotation(skNorm, skInvNorm)
pla = pla * App.Rotation(0, 1, 0, 0)
if enable: # clip plane shall be disabled so new placement can be applied
self.modify(ClipPlane(doc, 0))