pep8 compliance: E231 missing whitespace after ','
This commit is contained in:
parent
48ba7e06ac
commit
c811c1fd94
@ -106,7 +106,7 @@ class Operation(object):
|
|||||||
if sch == "Canceled":
|
if sch == "Canceled":
|
||||||
raise Cancel
|
raise Cancel
|
||||||
if sch is None:
|
if sch is None:
|
||||||
sch = MCSchematic( (0,0,0) )
|
sch = MCSchematic( (0, 0, 0) )
|
||||||
|
|
||||||
sch.compress()
|
sch.compress()
|
||||||
return sch
|
return sch
|
||||||
@ -166,8 +166,8 @@ class ThumbView(GLPerspective):
|
|||||||
self.gl_draw_thumb()
|
self.gl_draw_thumb()
|
||||||
else:
|
else:
|
||||||
if self.fbo is None:
|
if self.fbo is None:
|
||||||
w,h = self.fboSize
|
w, h = self.fboSize
|
||||||
self.fbo = FramebufferTexture(w,h, self.gl_draw_tex)
|
self.fbo = FramebufferTexture(w, h, self.gl_draw_tex)
|
||||||
GL.glMatrixMode(GL_PROJECTION)
|
GL.glMatrixMode(GL_PROJECTION)
|
||||||
GL.glLoadIdentity()
|
GL.glLoadIdentity()
|
||||||
GL.glMatrixMode(GL_MODELVIEW)
|
GL.glMatrixMode(GL_MODELVIEW)
|
||||||
@ -224,7 +224,7 @@ class BlockThumbView(Widget):
|
|||||||
if b is None:
|
if b is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
sch = MCSchematic(shape=(1,1,1), mats=self.materials)
|
sch = MCSchematic(shape=(1, 1, 1), mats=self.materials)
|
||||||
if b:
|
if b:
|
||||||
sch.Blocks[:] = b.ID
|
sch.Blocks[:] = b.ID
|
||||||
sch.Data[:] = b.blockData
|
sch.Data[:] = b.blockData
|
||||||
@ -799,7 +799,7 @@ class EditorTool(object):
|
|||||||
# to the opposite side
|
# to the opposite side
|
||||||
for d in dim1, dim2:
|
for d in dim1, dim2:
|
||||||
edge_width = box.size[d] * self.edge_factor
|
edge_width = box.size[d] * self.edge_factor
|
||||||
facenormal = [0,0,0]
|
facenormal = [0, 0, 0]
|
||||||
cameraBehind = False
|
cameraBehind = False
|
||||||
|
|
||||||
if point[d] - box.origin[d] < edge_width:
|
if point[d] - box.origin[d] < edge_width:
|
||||||
|
Reference in New Issue
Block a user