Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2017-08-16 14:26:17 +0300
committerGhostkeeper <rubend@tutanota.com>2017-08-16 14:26:17 +0300
commit484740f2ff3b8dab8e4bea00892c4d2229dda25b (patch)
treea0d097c7da1cb21ab5044bebb49c469742b5291b /cura/BuildVolume.py
parentb74c09dec87fcc06840ac65755e26207b85bde76 (diff)
Remove grid pattern
It'll be replaced by grid lines instead of grid surfaces. Contributes to issue CURA-4150.
Diffstat (limited to 'cura/BuildVolume.py')
-rwxr-xr-xcura/BuildVolume.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cura/BuildVolume.py b/cura/BuildVolume.py
index e37268e244..e613daa947 100755
--- a/cura/BuildVolume.py
+++ b/cura/BuildVolume.py
@@ -169,8 +169,7 @@ class BuildVolume(SceneNode):
self._shader = OpenGL.getInstance().createShaderProgram(Resources.getPath(Resources.Shaders, "default.shader"))
self._grid_shader = OpenGL.getInstance().createShaderProgram(Resources.getPath(Resources.Shaders, "grid.shader"))
theme = Application.getInstance().getTheme()
- self._grid_shader.setUniformValue("u_gridColor0", Color(*theme.getColor("buildplate").getRgb()))
- self._grid_shader.setUniformValue("u_gridColor1", Color(*theme.getColor("buildplate_alt").getRgb()))
+ self._grid_shader.setUniformValue("u_buildplateColor", Color(*theme.getColor("buildplate").getRgb()))
renderer.queueNode(self, mode = RenderBatch.RenderMode.Lines)
renderer.queueNode(self, mesh = self._origin_mesh)