Skip to content

Commit

Permalink
Fixes drum crash with 3d keys
Browse files Browse the repository at this point in the history
  • Loading branch information
erodozer committed Jul 27, 2011
1 parent dbd3f54 commit 951dfcf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Drum.py
Expand Up @@ -116,10 +116,6 @@ def __init__(self, engine, playerObj, editorMode = False, player = 0):
#myfingershurt:
self.hopoStyle = 0

if self.theme < 2: #make board same size as guitar board if GH based theme so it rockmeters dont interfere
self.boardWidth = 3.0
self.boardLength = 9.0

self.drumFretButtons = None

#blazingamer
Expand Down Expand Up @@ -435,7 +431,6 @@ def renderFrets(self, visibility, song, controls):
texture = None
model = self.keyMesh
if self.keytex:
model = self.keyMesh
if n == 0:
texture = self.keytexb.texture
elif n == 1:
Expand All @@ -451,7 +446,7 @@ def renderFrets(self, visibility, song, controls):
model = self.keyMeshOpen

c = [.1 + .8 * c[0] + f, .1 + .8 * c[1] + f, .1 + .8 * c[2] + f, v]
self.render3DKey(texture, model, x, y, c, n)
self.render3DKey(texture, model, x, y, c, n, f)

glDisable(GL_DEPTH_TEST)

Expand Down

0 comments on commit 951dfcf

Please sign in to comment.