chiark / gitweb /
Fix brim not always showing.
authordaid <daid303@gmail.com>
Mon, 24 Feb 2014 08:36:24 +0000 (09:36 +0100)
committerdaid <daid303@gmail.com>
Mon, 24 Feb 2014 08:36:24 +0000 (09:36 +0100)
Cura/gui/util/engineResultView.py

index 53cf51c7ac1dd1fef9b23c10f2aeabad94c2dd9b..1a7e88f713c8d480ead12ed4c64121a75542f7fe 100644 (file)
@@ -104,7 +104,12 @@ class engineResultView(object):
                                        if result._polygons is not None and n + 20 < len(result._polygons):
                                                layerVBOs = self._layer20VBOs[idx]
                                                for typeName, typeNameGCode, color in lineTypeList:
-                                                       if (typeName in result._polygons[n + 19]) or (typeName == 'skirt' and typeName in result._polygons[n]):
+                                                       allow = typeName in result._polygons[n + 19]
+                                                       if typeName == 'skirt':
+                                                               for i in xrange(0, 20):
+                                                                       if typeName in result._polygons[n + i]:
+                                                                               allow = True
+                                                       if allow:
                                                                if typeName not in layerVBOs:
                                                                        if generatedVBO:
                                                                                continue