You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if newElevation <= world.layers['elevation'].data[ry, rx]:
print('newElevation is <= than river, fix me...')
newElevation = world.layers['elevation'].data[r, x]
^-- I put that in there to catch issues newElevation being lower than current elevation (it mustn't be lower than the river itself) so we reset it back to the original value. However, this could be 'dead' code and is never run. Might have just been lucky.
Lines 385-390 of worldengine/simulations/erosion.py
I think that
world.layers['elevation'].data[r, x]
is wrong. It should be insteadorld.layers['elevation'].data[ry, rx]
. Am I missing something?The text was updated successfully, but these errors were encountered: