From b349a363531e78dfd3d278fd673b2a492e26bbee Mon Sep 17 00:00:00 2001 From: Gregor Riepl Date: Sat, 21 Feb 2026 12:53:15 +0100 Subject: [PATCH] Replace incompatible np.tostring with np.tobytes --- UM/View/GL/OpenGL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UM/View/GL/OpenGL.py b/UM/View/GL/OpenGL.py index ce58baff5..d29d552f1 100644 --- a/UM/View/GL/OpenGL.py +++ b/UM/View/GL/OpenGL.py @@ -293,7 +293,7 @@ def createVertexBuffer(self, mesh: "MeshData", **kwargs: Any) -> QOpenGLBuffer: for attribute_name in mesh.attributeNames(): attribute = mesh.getAttribute(attribute_name) - attribute_byte_array = attribute["value"].tostring() + attribute_byte_array = attribute["value"].tobytes() buffer.write(offset, attribute_byte_array, len(attribute_byte_array)) offset += len(attribute_byte_array)