fix(viz): SLine appears when the size is changed even if it is hidden
Description
SLine appears when the size is changed even if it is hidden.
The visibility should change only when it is required through the standard visibility API (hide/show/isVisible/ToogleVisibility)
Steps to reproduce
Add a SLine in a 3D scene.
Make it hidden (slot hide, or visible="false" in the config).
Change its size through the updateLength slot.
The SLine is visible.
Functional specifications
The "updateLength" slot should not change the visibility of the SLine.
Technical specifications
In the SLine
- change the update, to make it render the line, inside a if(m_isVisible) condition
- in the updateLength method, change the lenght, and call update
- in the setVisible change the visibility and call the update
- in the start, set the visibility, and all, then call the update.
Test plan
As it is an adaptor, up to now ut is not supported. Manual test is required.