Correct Pyside bug
This commit is contained in:
parent
72c03ea096
commit
85378004ef
@ -197,11 +197,15 @@ class PColorMeshItem(GraphicsObject):
|
|||||||
c = lut[norm[xi][yi]]
|
c = lut[norm[xi][yi]]
|
||||||
p.setBrush(QtGui.QColor(c[0], c[1], c[2]))
|
p.setBrush(QtGui.QColor(c[0], c[1], c[2]))
|
||||||
|
|
||||||
# DrawConvexPlygon is faster
|
polygon = QtGui.QPolygonF(
|
||||||
p.drawConvexPolygon(QtCore.QPointF(self.x[xi][yi], self.y[xi][yi]),
|
[QtCore.QPointF(self.x[xi][yi], self.y[xi][yi]),
|
||||||
QtCore.QPointF(self.x[xi+1][yi], self.y[xi+1][yi]),
|
QtCore.QPointF(self.x[xi+1][yi], self.y[xi+1][yi]),
|
||||||
QtCore.QPointF(self.x[xi+1][yi+1], self.y[xi+1][yi+1]),
|
QtCore.QPointF(self.x[xi+1][yi+1], self.y[xi+1][yi+1]),
|
||||||
QtCore.QPointF(self.x[xi][yi+1], self.y[xi][yi+1]))
|
QtCore.QPointF(self.x[xi][yi+1], self.y[xi][yi+1])]
|
||||||
|
)
|
||||||
|
|
||||||
|
# DrawConvexPlygon is faster
|
||||||
|
p.drawConvexPolygon(polygon)
|
||||||
|
|
||||||
|
|
||||||
p.end()
|
p.end()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user