Code cleanup

Changed to "is None" insted of "== None" to test if numpy.array was initialized
Added extruder to PathSegment in Cura.proto
Changed index_pattern to class variable in Layer.py
This commit is contained in:
Johan K 2016-07-12 01:32:46 +02:00
parent bbd49cee85
commit d31516bbb1
3 changed files with 16 additions and 9 deletions

View file

@ -63,7 +63,7 @@ class LayerPolygon:
def build(self, vertex_offset, index_offset, vertices, colors, indices):
if (self._build_cache_line_mesh_mask == None) or (self._build_cache_needed_points == None ):
if (self._build_cache_line_mesh_mask is None) or (self._build_cache_needed_points is None ):
self.buildCache()
line_mesh_mask = self._build_cache_line_mesh_mask