From a109396c0d3006b3c1b12175b5039df9a4a0ded4 Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Thu, 19 May 2016 22:08:10 +0200 Subject: [PATCH] Update to handle the removal of MeshData.setCenterPosition and MeshData.setVertexUVCoordinates(). Contributes to CURA-1504 --- cura/BuildVolume.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cura/BuildVolume.py b/cura/BuildVolume.py index 7072533ab9..dd76095d9a 100644 --- a/cura/BuildVolume.py +++ b/cura/BuildVolume.py @@ -113,10 +113,10 @@ class BuildVolume(SceneNode): Vector(max_w, min_h - 0.2, max_d), Vector(min_w, min_h - 0.2, max_d) ) - self._grid_mesh = mb.getData() for n in range(0, 6): - v = self._grid_mesh.getVertex(n) - self._grid_mesh.setVertexUVCoordinates(n, v[0], v[2]) + v = mb.getVertex(n) + mb.setVertexUVCoordinates(n, v[0], v[2]) + self._grid_mesh = mb.getData() disallowed_area_height = 0.1 disallowed_area_size = 0