Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.13.1
-
None
-
55bd8fbf38d3eede7ae7cf0eed357117e9eeba98 (qt/qtdatavis3d/dev) 6a34cb0db0b177ecc09eea0c623906e1504ca580 (qt/qtdatavis3d/6.1)
Description
When subclassing QItemModelSurfaceDataProxy to provide custom data for a Surface3DSeries which is using Theme3D.ColorStyleObjectGradient for coloring the 3D surface, the gradient is applied incorrectly (the whole surface receives the color at position 0 of the ColorGradient) when the trailing line(s) of the QSurfaceDataArray are comprosed of all NaN (in order to "slice" through the surface).
The attached example project shows this - using a Timer we continually regenerate the surface data with a single line missing, where the missing line position changes continually. For all indices of the missing line other than the last index in the array, the gradient is applied correctly. When the missing line reaches the last line, the whole surface is shown in constant blue.