Core datums: Rework to improve new sketch

This commit is contained in:
PaddleStroke
2024-12-13 10:01:13 +01:00
committed by Max Wilfinger
parent b48079c544
commit 4892fcaaf1
10 changed files with 185 additions and 77 deletions

View File

@@ -64,6 +64,6 @@ class ColorTransparencyTest(unittest.TestCase):
obj = self._doc.addObject('App::Origin')
t = self._doc.findObjects('App::Plane')[0].ViewObject.Transparency
self.assertEqual(t, 50,
'transparency of App::Plane object is {} instead of 50'.format(t))
self.assertEqual(t, 0,
'transparency of App::Plane object is {} instead of 0'.format(t))

View File

@@ -162,6 +162,8 @@ TaskFeaturePick::TaskFeaturePick(std::vector<App::DocumentObject*>& objects,
if (vpo) {
vpo->setTemporaryVisibility(originVisStatus[origin][axisBit],
originVisStatus[origin][planeBit]);
vpo->setTemporaryScale(4.0); // NOLINT
vpo->setPlaneLabelVisibility(true);
origins.push_back(vpo);
}
}
@@ -177,6 +179,8 @@ TaskFeaturePick::~TaskFeaturePick()
{
for (Gui::ViewProviderCoordinateSystem* vpo : origins) {
vpo->resetTemporaryVisibility();
vpo->resetTemporarySize();
vpo->setPlaneLabelVisibility(false);
}
}