Skip to content

Commit

Permalink
Fixes(?) bug when replacing images with the Rockmeter fx.
Browse files Browse the repository at this point in the history
  • Loading branch information
erodozer committed Nov 25, 2010
1 parent a377b16 commit 2f40ef4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Rockmeter.py
Expand Up @@ -430,7 +430,8 @@ def __init__(self, layer, section):
texture = self.get("texture").strip().split("|")
for tex in texture:
path = os.path.join("themes", layer.stage.themename, "rockmeter", tex)
self.drawings.append(layer.engine.loadImgDrawing(self, "drawing", drawing))
drawing = layer.engine.loadImgDrawing(self, None, path)
self.drawings.append(drawing)
self.drawings.append(layer.drawing)
if not self.get("rect") == None:
rects = self.get("rect").split("|")
Expand Down Expand Up @@ -482,7 +483,7 @@ def update(self):
self.layer.drawing = self.drawings[i]
if len(self.rects) > 1:
self.layer.rect = self.rects[i]
self.fixScale()
self.fixScale()
break

class Rockmeter:
Expand Down

0 comments on commit 2f40ef4

Please sign in to comment.