Skip to content

Commit

Permalink
Fix issue with background randomizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoikas committed Nov 11, 2024
1 parent 88591ed commit cfa502d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Python/stupStartUp.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def randomizeBackground(self):
return

# Get the first available ImageLibModifier on our Background SceneObject
if ilm := next(BGObj.sceneobject.getImageLibMods(), None):
if ilm := next(iter(BGObj.sceneobject.getImageLibMods()), None):
# Choose a random image from the available images
bgChoice = random.choice(ilm.getImages())
# Update the Background Layer's texture to our chosen image
Expand Down

0 comments on commit cfa502d

Please sign in to comment.