From be145d02b3ba43466367f6af0679248b17252d2b Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Tue, 24 May 2016 20:42:21 +0200 Subject: [PATCH] Updated the cura code for removal of MeshBuilder.getMesh(). 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 dd76095d9a..71db735f0a 100644 --- a/cura/BuildVolume.py +++ b/cura/BuildVolume.py @@ -104,7 +104,7 @@ class BuildVolume(SceneNode): mb.addLine(Vector(min_w, max_h, min_d), Vector(min_w, max_h, max_d), color = self.VolumeOutlineColor) mb.addLine(Vector(max_w, max_h, min_d), Vector(max_w, max_h, max_d), color = self.VolumeOutlineColor) - self.setMeshData(mb.getData()) + self.setMeshData(mb.build()) mb = MeshBuilder() mb.addQuad( @@ -116,7 +116,7 @@ class BuildVolume(SceneNode): for n in range(0, 6): v = mb.getVertex(n) mb.setVertexUVCoordinates(n, v[0], v[2]) - self._grid_mesh = mb.getData() + self._grid_mesh = mb.build() disallowed_area_height = 0.1 disallowed_area_size = 0 @@ -141,7 +141,7 @@ class BuildVolume(SceneNode): size = 0 disallowed_area_size = max(size, disallowed_area_size) - self._disallowed_area_mesh = mb.getData() + self._disallowed_area_mesh = mb.build() else: self._disallowed_area_mesh = None