Warning messages from pqDisplayColorWidget on state loading
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
- Create Sphere, Apply
- Color by "Normals", Component "Y".
- Hide the Sphere
- Save XML state.
Now "Reset Session" or restart ParaView and then load the XML state. If you select "Sphere0" in the Pipeline Browser, you'll get following messages:
( 0 , "Normals" ) is not an array shown in the pqDisplayColorWidget currently. Will add a new entry for it ( 0 , "Normals" ) is not an array shown in the pqDisplayColorWidget currently. Will add a new entry for it
That incorrect. What's expected is as follows:
Since the Sphere pipeline hasn;t executed, it's expected that ParaView doesn't know what this array "Normals" is. But the pqDisplayColorWidget should silently add that to the combo-box and show it.
Since ParaView doesn't know about the array, it doesn't know how many components it has at this time. So it's expected that the component selection combo-box is empty.
Now when you turn on "visibility" of the Sphere, the source executes and ParaView will know what this "Normals" array is (along with other potential options). The UI should then update to show the selection of components available and currently selected component (which in this case is "Y").