byu-animation/byu-animation-tools — pull request #108 by jmoborn (2013-03-07 05:46:38+00:00)
Title: Discard bug fix

Today during dailies someone mentioned that the discard tool doesn't always unlock the assets. I think the problem is that initializing the filepath parameter in the function definition means that it's only run the first time the function is called. So if someone tries to discard changes to a second asset it's still trying to access the first asset's filepath. Moving the variable initialization into the body of the function should fix that.