Use byteCount() instead of obsolete numBytes().

This change is Qt4/Qt5 neutral.
This commit is contained in:
Mateusz Skowroński 2016-04-10 06:29:20 +02:00 committed by Yorik van Havre
parent 2c79424f81
commit d9b7a5fbbf

View File

@ -534,7 +534,7 @@ def loadTexture(filename,size=None):
#else:
# p = QtGui.QImage(filename)
size = coin.SbVec2s(p.width(), p.height())
buffersize = p.numBytes()
buffersize = p.byteCount()
numcomponents = int (float(buffersize) / ( size[0] * size[1] ))
img = coin.SoSFImage()