From 74d21a9053f5f6eb4c7093eb3348cc29d2031c9a Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Fri, 29 Jul 2016 19:15:05 +0200 Subject: [PATCH] Only draw boundingbox wireframe on selected groups CURA-1492 --- plugins/SolidView/SolidView.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/SolidView/SolidView.py b/plugins/SolidView/SolidView.py index 1e9721169a..0329fb53e2 100644 --- a/plugins/SolidView/SolidView.py +++ b/plugins/SolidView/SolidView.py @@ -3,6 +3,7 @@ from UM.View.View import View from UM.Scene.Iterator.DepthFirstIterator import DepthFirstIterator +from UM.Scene.Selection import Selection from UM.Resources import Resources from UM.Application import Application from UM.Preferences import Preferences @@ -87,7 +88,7 @@ class SolidView(View): renderer.queueNode(node, shader = self._enabled_shader, uniforms = uniforms) else: renderer.queueNode(node, material = self._enabled_shader, uniforms = uniforms) - if node.callDecoration("isGroup"): + if node.callDecoration("isGroup") and Selection.isSelected(node): renderer.queueNode(scene.getRoot(), mesh = node.getBoundingBoxMesh(), mode = Renderer.RenderLines) def endRendering(self):