diff options
author | Tim Kuipers <t.kuipers@ultimaker.com> | 2017-05-19 13:14:05 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2017-06-21 16:05:49 +0300 |
commit | cfe1dd4fb6dbb3f8dee11189933e6ff82e4673eb (patch) | |
tree | 0c74a30390e3dd32a1fb080f59aa7288c7990e91 /plugins/SolidView | |
parent | 827ec9b6a50b056e9238b885f900094538b98df5 (diff) |
fix: group selection box uses proper rendermode now (CURA-3846)
Renderer.RenderMode doesn't exist any more.
This should have been fixed way back when RenderBatch was introduced
Diffstat (limited to 'plugins/SolidView')
-rw-r--r-- | plugins/SolidView/SolidView.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SolidView/SolidView.py b/plugins/SolidView/SolidView.py index 60c01670b1..04a0afd77b 100644 --- a/plugins/SolidView/SolidView.py +++ b/plugins/SolidView/SolidView.py @@ -7,7 +7,7 @@ from UM.Scene.Selection import Selection from UM.Resources import Resources from UM.Application import Application from UM.Preferences import Preferences -from UM.View.Renderer import Renderer +from UM.View.RenderBatch import RenderBatch from UM.Settings.Validator import ValidatorState from UM.Math.Color import Color from UM.View.GL.OpenGL import OpenGL @@ -118,7 +118,7 @@ class SolidView(View): else: renderer.queueNode(node, material = self._enabled_shader, uniforms = uniforms) if node.callDecoration("isGroup") and Selection.isSelected(node): - renderer.queueNode(scene.getRoot(), mesh = node.getBoundingBoxMesh(), mode = Renderer.RenderLines) + renderer.queueNode(scene.getRoot(), mesh = node.getBoundingBoxMesh(), mode = RenderBatch.RenderMode.LineLoop) def endRendering(self): pass |