Core datums: Rework to improve new sketch
This commit is contained in:
committed by
Max Wilfinger
parent
b48079c544
commit
4892fcaaf1
@@ -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))
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user